Slack64; trying to compile libparted = "error: GNU Readline could not be found"
Linux - SoftwareThis 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.
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
Slack64; trying to compile libparted = "error: GNU Readline could not be found"
Anyone successfully built LibParted on Slackware (or any system) and either encountered this error and got around it, or has an idea why it's happening?
Readline is installed here, no question. I began all this with the Stock readline version 1.9 (IIRC) and parted wouldn't find the readline libs. So I thought what the heck, I'll reinstall or upgrade Readline, to go with the shiny new parted version, but still no go.
So, the summary: I'm trying to run ./configure on sources for Parted-2.1 on Slack64, and it cannot find readline. Here's some info:
bash-3.1# ./configure --prefix=/usr --libdir=/usr/lib64 --includedir=/usr/include --enable-dependency-tracking --disable-largefile --with-readline
checking for a BSD-compatible install... /bin/ginstall -c
checking whether build environment is sane... yes
... blah blah ...
checking for ld used by GCC... /usr/x86_64-slackware-linux/bin/ld -m elf_x86_64
checking if the linker (/usr/x86_64-slackware-linux/bin/ld -m elf_x86_64) is GNU ld... yes
checking for shared library run path origin... done
checking for CFPreferencesCopyAppValue... no
checking for CFLocaleCopyCurrent... no
checking for GNU gettext in libc... yes
checking whether to use NLS... yes
checking where the gettext function comes from... libc
checking for dlopen in -ldl... yes
checking for uuid_generate in -luuid... yes
checking for dm_task_create in -ldevmapper... yes
checking for library containing tgetent... -lncurses
checking for readline in -lreadline... no
configure: error: GNU Readline could not be found which is required for the
--with-readline (which is enabled by default). Either disable readline support with
--without-readline or downloaded and install it from:
Note: if you are using precompiled packages you will also need the development
package as well (which may be called readline-devel or something similar).
bash-3.1# ls /var/log/packages | grep readline
readline-6.1-x86_64-0_sva <-- see! Nice and new.
Anyone know what gives here?? Is this a parted configure bug? Google turns up few similar stories, but there are some; one is here on LQ, but the OP found what he needed in a repository, so stopped trying to build it. I've perused the buggies reported on GNU Parted TRAC page, but nothing there since parted 1.8.8
hmm.. I was able to reproduce your error in slack 64 and eventually get past it by downloading and compiling readline myself, but now I'm getting errors compiling parted. Are you sure 2.1 is ready for primetime? Is there a feature in it you seek?
I've got quite a few micro brews in me preventing me from figuring this out as quickly as I should.
Trying to build Gparted, which I built successfully in the past, on Slack 11.
So, I have here Gparted sources, version 0.4.6.
Gparted ./configure fails; tells me it wants libparted >= 1.7.1. so I look around, and find that I already have libparted 1.9.x.
Same problem as the readline thing though; Gparted can't find the parted 1.9.x libs. So, I decide to reinstall, then finally upgrade libparted.
I'm not 100% certain that Parted 2.1 is ready for primetime, but I didn't see or read anywhere that it was not, either; and it's in the "stable" area of the FTP server where I got it from, so I figured why not.. I tend to try using the latest stuff unless there's a compelling reason not to.
So, trying to ./configure the new parted 2.1 to replace my 1.9.x parted, and I encounter this readline problem, andhere I am.
So, at the very start of it all, I did try building Gparted with my default readline and libparted (both the stock Slack64 versions) but the result was identical. So decided to try upgrading readline (which worked fine, it built and installed great) but didn't fix the fact that libparted cannot find it.
Gparted wants libparted.
libparted wants readline.
readline is installed, but cannot be found by anything :/
Sorry if I made this post a bit more convoluted than it probably needs to be; I'm nearing bed time very soon, am pretty tired.
What version did you upgrade readline to? I compile/install readline and had to specify --with-readline=/usr/local (the location where I installed the new version) and finally pass the ./configure errors. I had used sh -x ./configure <options> to see what exactly it was trying to do.
I have worked past the last compile error, which was a problem with the dev-mapper library. I upgraded that (LVM2 2.2.02) and now getting some other compile error.
Yet another micro-brew in me so you don't want to listen to me anymore tonight ...
I upgraded to readline 6.1 -- but you gave me a clue.. You wrote that you specified --with-readline=/usr/local, but now, if I installed my readline to --prefix=/usr then maybe I need to use --with-readline=/usr for it to find it?
Seems weird to me; and no problem about the microbrews as I am probably not much better off, due to being very tired and ready for bed in a few minutes.
I will revisit this tommorrow, and update after having tried some --with-readline= options.
Well, for the moment, this problem appears to be solved. Thanks to crabboy for the clues about specifying an =/location with the --with-readline argument. I gave it: =/usr and the problem is solved though I am still stumped about why this is necessary; it doesn't seem 'normal'.. Even the SlackBuilds do not specify such an option.
If anyone cares to enlighten me as to why the ./configure cannot seem to find Readline by itself, it'd be grateful.
I can confirm the same for me. I have since re-installed the original libparted 1.8.x from Slack64, and the Gparted configure script finds that fine. It's weird, since I built the new libparted package exactly as the old one is.
Anyhow, now I get same as you, missing GTKMM, but I have already downloaded that some time ago, so that's where I'm going next.
I have a funny feeling that the reason I took a break from all this, a number of weeks ago, is what I will find when I go now to build GTKMM: *it* is missing something. And so on, and so on..
Last night I got everything installed (the dependencies) and built against my STOCK readline, and libparted 1.9.x. and have a working Gparted now.
It seems the trouble involved (my best guess here) the configure scripts not being able to locate stuff in /usr/include. This became particularly common with some of the (gnomish) libs and things I had to install as dependencies, like gtk+2, glib, gtkmm, etc...
For a number of the builds, I had to add -I/usr/include/<whatever> to the $CPPFLAGS, where <whatever> might have been readline, glib, gtk+2, etc.. With that, everything built nice and simple.
To verify (or prove myself wrong and have problems again!) I am going to try to upgrade my readline and libparted again to shiny new versions (for the heck of it) and try to rebuild Gparted against them. This will be later today, and I will update thread again.