Slackware This Forum is for the discussion of Slackware Linux.
|
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
05-11-2006, 10:46 AM
|
#1
|
LQ Newbie
Registered: May 2006
Posts: 11
Rep:
|
./configure error
I'm building a package which relies on readline 5.1, however
I installed readline 5.1 to /opt/readline-5.1/ and i have it in my ld.conf file as /opt/readline/lib and it's not checking.
How do i make a configure script search for non-standard directories?
(I have multiple versions of readline installed so they won't conflict with each other and so I won't make as much of a mess.
configure: error: CGDB requires GNU readline 5.1 or greater to link.
If you used --with-readline instead of using the system readline library,
make sure to set the correct readline library on the linker search path
via LD_LIBRARY_PATH or some other facility.
|
|
|
05-11-2006, 11:05 AM
|
#2
|
Senior Member
Registered: May 2003
Location: Columbus, OH
Distribution: DIYSlackware
Posts: 1,914
Rep:
|
Probably with
Code:
./configure --prefix=/wherever --with-readline=/opt/readline
Why did you install readline to /opt just out of curiosity? That's a pretty standard package. It also comes with slack...
Any configure questions and you should consult
for the answer. Also, I'm sure you updated "ldconfig" as well? Just checking...
Last edited by jong357; 05-11-2006 at 11:06 AM.
|
|
|
05-11-2006, 02:44 PM
|
#3
|
LQ Newbie
Registered: May 2006
Posts: 11
Original Poster
Rep:
|
Quote:
Originally Posted by jong357
Probably with
Code:
./configure --prefix=/wherever --with-readline=/opt/readline
Why did you install readline to /opt just out of curiosity? That's a pretty standard package. It also comes with slack...
Any configure questions and you should consult
for the answer. Also, I'm sure you updated "ldconfig" as well? Just checking...
|
I installed readline to opt because I didn't want to replace the one that came with slackware and the code i'm compilng depends on a later version.
|
|
|
05-11-2006, 03:30 PM
|
#4
|
Amigo developer
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,928
|
Pass it like this:
LD_LIBRARY_PATH=/opt/readline/lib:$PATH ./configure prefix=/whatever
Do the same for compiling also.
|
|
|
05-11-2006, 05:15 PM
|
#5
|
LQ Newbie
Registered: May 2006
Posts: 11
Original Poster
Rep:
|
Quote:
Originally Posted by gnashley
Pass it like this:
LD_LIBRARY_PATH=/opt/readline/lib:$PATH ./configure prefix=/whatever
Do the same for compiling also.
|
Is there a way I can make those settings permanant?
|
|
|
05-12-2006, 02:09 AM
|
#6
|
Amigo developer
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,928
|
ldconfig does that through your ld.so.conf file. But not all configure scripts and Makefiles will correctly find them, which is why it works if you do it as above.
BTW, the order in which you put the entries in the conf file will probably affect which libs get used by a program, if there are more than one version of the same lib.
You can always make a wrapper for running the program which sets up the environment before running the prog:
#/bin/bash
LD_LIBRARY_PATH=/opt/readline/lib:$PATH
exec /path/to/prog "$@"
exit 0
Name it whatever and place in your path.
|
|
|
05-12-2006, 04:17 AM
|
#7
|
LQ Guru
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,352
|
You don't need to do any of this. There's a readline 5.1 package on linuxpackages.net. Just download it and install it with upgradepkg.
Another option is to use the readline SlackBuild script from either slackware 10.2 or slackware-current to compile readline 5.1 into a package that you then install with upgradepkg.
Either option will upgrade your system's readline package to 5.1.
That's all you need to do.
If the new readline gives your problems (it won't), then you can instantly switch back to the old version by using upgradepkg on the readline package that comes with the distribution.
I understand you're probably worried that your existing packages might depend on the older version of readline and stop working if you replace it with the newer version. Don't worry about that; Slackware doesn't work that way.
Last edited by dugan; 05-12-2006 at 04:20 AM.
|
|
|
All times are GMT -5. The time now is 07:34 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|