LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 05-11-2006, 09:46 AM   #1
blazemonger
LQ Newbie
 
Registered: May 2006
Posts: 11

Rep: Reputation: 0
./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.
 
Old 05-11-2006, 10:05 AM   #2
jong357
Senior Member
 
Registered: May 2003
Location: Columbus, OH
Distribution: DIYSlackware
Posts: 1,914

Rep: Reputation: 52
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

Code:
./configure --help
for the answer. Also, I'm sure you updated "ldconfig" as well? Just checking...

Last edited by jong357; 05-11-2006 at 10:06 AM.
 
Old 05-11-2006, 01:44 PM   #3
blazemonger
LQ Newbie
 
Registered: May 2006
Posts: 11

Original Poster
Rep: Reputation: 0
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

Code:
./configure --help
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.
 
Old 05-11-2006, 02:30 PM   #4
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,928

Rep: Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612
Pass it like this:
LD_LIBRARY_PATH=/opt/readline/lib:$PATH ./configure prefix=/whatever

Do the same for compiling also.
 
Old 05-11-2006, 04:15 PM   #5
blazemonger
LQ Newbie
 
Registered: May 2006
Posts: 11

Original Poster
Rep: Reputation: 0
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?
 
Old 05-12-2006, 01:09 AM   #6
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,928

Rep: Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612
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.
 
Old 05-12-2006, 03:17 AM   #7
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,225

Rep: Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320
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 03:20 AM.
 
  


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
server-error-internal-error with CUPS "Configure Printer" fskmh Slackware 6 06-05-2013 01:51 PM
ardour wont configure: configure: error: C preprocessor "/lib/cpp" fails sanity check disciple061 Linux - Software 4 01-22-2005 12:35 PM
configure: error: when trying to install / configure new software ? met tomfer007 Linux - Software 1 07-25-2004 03:52 PM
./configure error PoezeBeest Linux - Software 5 04-15-2004 06:26 AM
Configure Error Josnap Linux - Software 5 10-07-2003 09:43 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 01:09 PM.

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