Re: About software companion cd
From: Dave Uhring (daveuhring_at_yahoo.com)
Date: 02/28/05
- Next message: Rich Teer: "Re: Yet another USB post - Anyone with working USB/Solaris 9 Sparc please read"
- Previous message: Markus Weber: "Scheduler problem/process starvation? (was Re: Socket problems with Sol10 (hangs))"
- In reply to: Thone: "About software companion cd"
- Next in thread: Tony Copeland: "Re: About software companion cd"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Mon, 28 Feb 2005 09:23:19 -0600
On Mon, 28 Feb 2005 21:54:37 +0700, Thone wrote:
> I just insalled Sofware Companio on Solaris10 x86. The software
> installation path is in /opt/. When I need to compile a program, it asks
> fo `gcc'. I know that gcc is installed then I can check for it and added
> it to the PATH. but it seems that some software require a lot more
> programs and libraries which resided in /opt/. Are there anyway to make
> it a default search path for both libs and programs? Or is it possible
> to install all of them into the default path (like /usr/lib...)
The runtime linker, /lib/ld.so.1, has a default search path of
/lib:/usr/lib. In order to inform the linker of alternate search paths
the header of the binary must contain those paths. This is done at
compile/link time by setting LDFLAGS appropriately.
If a properly constructed GNU configure script is in the sources the
user's environment will be read and LDFLAGS will be set appropriately. In
your ~/.profile or ~/.kshrc or ~/.bashrc
LDFLAGS='-L/opt/sfw/lib -R/opt/sfw/lib -L/usr/openwin/lib \
-R/usr/openwin/lib'
export LDFLAGS
The -L tells the compile time linker, /usr/ccs/bin/ld, where to find the
libraries; the -R tells the runtime linker where to find them.
If you find that you need to set LD_LIBRARY_PATH for *any* reason you have
failed to properly build your binaries.
- Next message: Rich Teer: "Re: Yet another USB post - Anyone with working USB/Solaris 9 Sparc please read"
- Previous message: Markus Weber: "Scheduler problem/process starvation? (was Re: Socket problems with Sol10 (hangs))"
- In reply to: Thone: "About software companion cd"
- Next in thread: Tony Copeland: "Re: About software companion cd"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|