Обсуждение: Readline, Postgresql and Solaris
I’ve been trying to install readline in Solaris so that Postgresql detects readline during ./configure. However, doing a ./configure and make install to install readline from source in Solaris just isn’t enough to get Postgresql to detect readline during its ./configure. I have been able to get postgresql to detect readline if I use pkg-get to install readline. However, I need to figure out how to do this manually/without pkg-get. Is there someone who knows what I need to do?
Thanks in advance,
Josh
"Garcia, Joshua" <Joshua.Garcia@xerox.com> writes: > I've been trying to install readline in Solaris so that Postgresql > detects readline during ./configure. However, doing a ./configure and > make install to install readline from source in Solaris just isn't > enough to get Postgresql to detect readline during its ./configure. What happens exactly when you run our configure? Just as a hint, configure needs to find both the include files and the readline library file. You may need to specify --with-includes and/or --with-libraries to get the compiler to look in the right place, if you didn't install readline into the "standard" directories /usr/include and /usr/lib. regards, tom lane
"Garcia, Joshua" <Joshua.Garcia@xerox.com> writes: >> Just as a hint, configure needs to find both the include files and the >> readline library file. You may need to specify --with-includes and/or >> --with-libraries to get the compiler to look in the right place, if >> you didn't install readline into the "standard" directories /usr/include >> and /usr/lib. > Hmm...when I installed readline I only did a ./configure and a 'make > install.' I don't know how else to make it install to the standard > directories Its default is probably to install in /usr/local/include and /usr/local/lib. gcc is usually configured to search those directories by default, but most vendor cc's aren't. Try saying --with-includes=/usr/local/include etc. regards, tom lane
Thanks. That fixed the readline problem. I ended up getting another problem. So I gave up trying to install to non-default directories and just switched to root and installed that way. That all worked. Thanks again, Josh -----Original Message----- From: Tom Lane [mailto:tgl@sss.pgh.pa.us] Sent: Friday, August 11, 2006 9:06 AM To: Garcia, Joshua Cc: pgsql-novice@postgresql.org Subject: Re: [NOVICE] Readline, Postgresql and Solaris "Garcia, Joshua" <Joshua.Garcia@xerox.com> writes: >> Just as a hint, configure needs to find both the include files and the >> readline library file. You may need to specify --with-includes and/or >> --with-libraries to get the compiler to look in the right place, if >> you didn't install readline into the "standard" directories /usr/include >> and /usr/lib. > Hmm...when I installed readline I only did a ./configure and a 'make > install.' I don't know how else to make it install to the standard > directories Its default is probably to install in /usr/local/include and /usr/local/lib. gcc is usually configured to search those directories by default, but most vendor cc's aren't. Try saying --with-includes=/usr/local/include etc. regards, tom lane