SlackwareThis 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.
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.
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.
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:
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.