Re: IUP in Phix

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

The Filesystem Hierarchy Standard assures me that installing into /usr is appropriate. Very helpful.

Technically, yes. But the correct place for anything you're installing by hand would be /usr/local.

Shared libraries (.so files) should go into /usr/local/lib, exectuables should go into /usr/local/bin.

You may also need to add LD_LIBRARY_PATH to your $HOME/.profile. Here's the last line of mine:

export LD_LIBRARY_PATH=.:/usr/local/lib:$LD_LIBRARY_PATH 

This includes three parts separated by colon:

  • current directory (.) - this is helpful for simulating the behavior of Windows (I should probably just add -Wl,-rpath=. to the linker args so this is built-in)
  • /usr/local/lib - the local USR directory for shared libraries, as described above
  • $LD_LIBRARY_PATH - append any previous values of this environment variable

Hope that helps.

-Greg

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

Search



Quick Links

User menu

Not signed in.

Misc Menu