Re: include files on cgi-bin

new topic     » goto parent     » topic index » view thread      » older message » newer message
dr_can said...

Thank you Greg for the excellent installation advice.

Broadening the topic slightly: can you give correspondingly good advice on the location of 'so' files for best Euphorian access. (I ask because I have two machines with near identical setups, where open_dll can "find" all my 'so's in one case whereas in the other case it can only find some - not none, though!)

Anything you're installing by hand should go into /usr/local/lib, which should be in the default search path for shared libraries on common distros like Debian, Ubuntu, Fedora, etc.

Euphoria relies on dlopen() so reading that man page helps understand how it's searching and why the loading can fail.

Unfortunately the man page outright states, "if dlopen() fails for any reason, it returns NULL." So working out "cannot find" versus "cannot load" can be tricky.

If you've got your libraries in /usr/local/lib, if they still aren't loading, run them through ldd and look for instances of not found. These are dependencies you need to resolve.

If you're missing any dependencies, you'll get output similar to this:

$ ldd /usr/local/lib/libname.so | grep 'not found' 
  libsomething.so => not found 

If you're on Debian/Ubuntu/etc. and are unsure which package is required to install the missing library, you can try searching with apt-file.

$ sudo apt install apt-file 
$ sudo apt-file update 
$ apt-file find libsomething.so 

-Greg

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu