List Info

Thread: Paths to executables and libraries




Paths to executables and libraries
user name
2006-09-18 23:20:52
My installation of fedora-ds-1.0.1-1.RHEL4 puts executables
in /opt/fedora-ds/shared/bin/ and libraries
in /opt/fedora-ds/shared/lib/.

What would you all recomend as a "proper" way of
modifying the $PATH
variable and of linking to the DS libraries?
-- 
Oscar A. Valdez

--
Fedora-directory-users mailing list
Fedora-directory-usersredhat.com
https://www.redhat.com/mailman/listinfo/fedora-dir
ectory-users
Paths to executables and libraries
user name
2006-09-18 23:40:51
Oscar A. Valdez wrote:

>My installation of fedora-ds-1.0.1-1.RHEL4 puts
executables
>in /opt/fedora-ds/shared/bin/ and libraries
>in /opt/fedora-ds/shared/lib/.
>
>What would you all recomend as a "proper"
way of modifying the $PATH
>variable and of linking to the DS libraries?
>  
>
If you don't mind overriding the system ldap commands,
which are 
normally located in /usr/bin, you could do
$ export PATH=/opt/fedora-ds/shared/bin:$PATH
$ export
LD_LIBRARY_PATH=/opt/fedora-ds/shared/lib:$LD_LIBRARY_PATH

Alternatively, you could go to the directory
/opt/fedora-ds/shared/bin, 
and run the command line interface:
$ cd /opt/fedora-ds/shared/bin; ./ldapsearch <options>
This way, the library path is take care of by rpath.  If you
don't want 
to make the fedora-ds command line utilities conflict with
the system 
ones, you may want to make a script file (for each command)
and set the 
<script_file_path> to your path...

--noriko
--
Fedora-directory-users mailing list
Fedora-directory-usersredhat.com
https://www.redhat.com/mailman/listinfo/fedora-dir
ectory-users
Paths to executables and libraries
user name
2006-09-20 19:13:42
El lun, 18-09-2006 a las 16:40 -0700, Noriko Hosoi escribió:
> Oscar A. Valdez wrote:
> 
> >My installation of fedora-ds-1.0.1-1.RHEL4 puts
executables
> >in /opt/fedora-ds/shared/bin/ and libraries
> >in /opt/fedora-ds/shared/lib/.
> >
> >What would you all recomend as a
"proper" way of modifying the $PATH
> >variable and of linking to the DS libraries?
> >  
> >
> If you don't mind overriding the system ldap commands,
which are 
> normally located in /usr/bin, you could do
> $ export PATH=/opt/fedora-ds/shared/bin:$PATH

I don't seem to have any ldap binaries in /usr/bin. Which
ones are you
referring to?

> $ export
LD_LIBRARY_PATH=/opt/fedora-ds/shared/lib:$LD_LIBRARY_PATH

Using LD_LIBRARY_PATH is supposed to be "A Bad
Thing". Why not
# ldconfig /opt/fedora-ds/shared/lib

Thanks for your reply.
-- 
Oscar A. Valdez
Industrias Duraflex, S.A. de C.V.

--
Fedora-directory-users mailing list
Fedora-directory-usersredhat.com
https://www.redhat.com/mailman/listinfo/fedora-dir
ectory-users
Paths to executables and libraries
user name
2006-09-21 03:43:44
Oscar A. Valdez wrote:
> El lun, 18-09-2006 a las 16:40 -0700, Noriko Hosoi
escribió:
>   
>> Oscar A. Valdez wrote:
>>
>>     
>>> My installation of fedora-ds-1.0.1-1.RHEL4 puts
executables
>>> in /opt/fedora-ds/shared/bin/ and libraries
>>> in /opt/fedora-ds/shared/lib/.
>>>
>>> What would you all recomend as a
"proper" way of modifying the $PATH
>>> variable and of linking to the DS libraries?
>>>  
>>>
>>>       
>> If you don't mind overriding the system ldap
commands, which are 
>> normally located in /usr/bin, you could do
>> $ export PATH=/opt/fedora-ds/shared/bin:$PATH
>>     
>
> I don't seem to have any ldap binaries in /usr/bin.
Which ones are you
> referring to?
>   
Hm - you must not have the openldap client or tools package
installed.
>   
>> $ export
LD_LIBRARY_PATH=/opt/fedora-ds/shared/lib:$LD_LIBRARY_PATH
>>     
>
> Using LD_LIBRARY_PATH is supposed to be "A Bad
Thing". Why not
> # ldconfig /opt/fedora-ds/shared/lib
>   
That works too, as long as you can guarantee that having
those libraries 
in the default path won't mess up other apps e.g. on RHEL4
Firefox and 
Thunderbird use private copies of nspr, nss, and mozldap,
which are 
different versions than those in /opt/fedora-ds/shared/lib.
> Thanks for your reply.
>   

--
Fedora-directory-users mailing list
Fedora-directory-usersredhat.com
https://www.redhat.com/mailman/listinfo/fedora-dir
ectory-users
[1-4]

about | contact  Other archives ( Real Estate discussion Medical topics )