LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-01-2003, 04:15 PM   #1
tarballed
Member
 
Registered: Jun 2002
Distribution: RH, FC, FreeBSD,OpenBSD
Posts: 326

Rep: Reputation: 30
Question on ld.so.conf file...


Really quick question here folks. Well, just a matter of correcting me if im wrong.

When you install new piece of software from source and it comes with some bin files that you run to use the program, if you want those programs to be available without having to use the full path, you need to put the path into ld.so.conf and run ldconfig correct?

For instance, I installed a piece of software into /usr/local/stuff.

It has a bin directory below it that has many options that can be run from the command line:

/usr/local/stuff/bin/mailstuff

Now, while at my command line, I cannot type mailstuff as it cannot find it...

Now, if I add the path /usr/local/stuff to my ld.so.conf and run ldconfig, that should make it work when I try to use it from the command line, correct?

Or is this something I need to add to my $PATh variable...

I get the $PATH variable and ld.so.conf things mixed up...

Anyone have a good explanation for these?

Tarballed
 
Old 09-01-2003, 05:14 PM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
The ld.so.conf file is from my understanding for libs, not the search path for commands/programs.

If you have a program and its not in the current users path, you'll need to add that like you mentioned before.
 
Old 09-01-2003, 05:24 PM   #3
camelrider
Member
 
Registered: Apr 2003
Location: Juneau, Alaska
Posts: 251

Rep: Reputation: 32
Adding /usr/local/stuff/bin to your $PATH will work if that's the directory where all the commands reside. If the tree is more complicated, such as if /usr/local/stuff/bin/mailstuff is a directory then it may be easier to just add symlinks in /usr/local/bin to whatever commands you want to use.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
rsyncd.conf file module question bjones Linux - Software 1 11-26-2005 08:21 AM
question about uucp service and /etc/inetd.conf file frankie_DJ Linux - Newbie 2 09-03-2005 01:23 AM
Question about .conf file QPQ Linux - Wireless Networking 3 06-06-2005 08:09 AM
can't file dhcpd.conf vito_huang Linux - Networking 6 01-28-2005 07:04 AM
saving changes to apache2/conf/httpd.conf file Zaius Linux - Newbie 6 01-09-2004 11:45 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:54 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration