I'm trying to work with postgresql but i had these problems when I tried to install it in Oracle Linux 7.2 kernel 3.10.0-327
after using this command to compile the source:
./configure --with-openssl
I have this error:
checking for main in -lm... yes
checking for library containing setproctitle... no
checking for library containing dlopen... -ldl
checking for library containing socket... none required
checking for library containing shl_load... no
checking for library containing getopt_long... none required
checking for library containing crypt... -lcrypt
checking for library containing shm_open... -lrt
checking for library containing shm_unlink... none required
checking for library containing fdatasync... none required
checking for library containing sched_yield... none required
checking for library containing gethostbyname_r... none required
checking for library containing shmget... none required
checking for library containing readline... no
configure: error: readline library not found
If you have readline already installed, see config.log for details on the
failure. It is possible the compiler isn't looking in the proper directory.
Use --without-readline to disable readline support.
[root#localhost postgresql-9.5.1]# brew
bash: brew: command not found...
[root#localhost postgresql-9.5.1]# find readline
find: ‘readline’: No such file or directory
[root#localhost postgresql-9.5.1]# yum install readline
Loaded plugins: langpacks, ulninfo
pgdg95 | 3.6 kB 00:00:00
(1/2): pgdg95/7Server/x86_64/group_gz | 333 B 00:00:00
(2/2): pgdg95/7Server/x86_64 /primary_db | 127 kB 00:00:00
Package readline-6.2-9.el7.x86_64 already installed and latest version
Nothing to do
[root#localhost postgresql-9.5.1]#
readline is already installed , i do not understand why i have the problem
I've just found a solution for that:
this command:
yum install readline-devel
yum install zlib-devel
solved my problem
Related
Does anyone know how to fix this error?
I am currently trying to install Haskell on Mac using the instructions from https://www.haskell.org/ghcup/.
Installation starts with the following command line:
curl --proto '=https' --tlsv1.2 -sSf https://get-ghcup.haskell.org | sh
However at a certain moment I receive this error:
Build failed with NonZeroExit 77 "./configure" ["--prefix=/Users/not_root/.ghcup/ghc/8.8.3"]
Check the logs at ~/.ghcup/logs and the build directory"/var/folders/n0/g0qh09_s46ndjzmy1jctj7f00000gr/T/ghcup-iyHoc8/ghc-8.8.3" for more clues.
"ghcup --cache install" failed!
This are the log files:
ghc-configure.log:
checking for gcc... gcc
checking whether ln -s works... yes
checking for gsed... sed
checking XCode version... xcode-select: error: tool 'xcodebuild'requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance
not found (too old?)
checking for gcc... gcc
checking whether the C compiler works... no
checking for gsed... sed
checking XCode version... xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance
not found (too old?)
checking for gcc... gcc
checking whether the C compiler works... no
configure: error: in `/private/var/folders/n0/g0qh09_s46ndjzmy1jctj7f00000gr/T/ghcup-iyHoc8/ghc-8.8.3':
checking XCode version... xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance
not found (too old?)
checking for gcc... gcc
checking whether the C compiler works... no
configure: error: in `/private/var/folders/n0/g0qh09_s46ndjzmy1jctj7f00000gr/T/ghcup-iyHoc8/ghc-8.8.3':
configure: error: C compiler cannot create executables
not found (too old?)
checking for gcc... gcc
checking whether the C compiler works... no
configure: error: in `/private/var/folders/n0/g0qh09_s46ndjzmy1jctj7f00000gr/T/ghcup-iyHoc8/ghc-8.8.3':
configure: error: C compiler cannot create executables
See `config.log' for more details
This is the ghcup.log:
Debug: Receiving download info from: GHCupURL
Debug: Unable to get/parse Last-Modified header
Debug: Requested to install GHC with Version {_vEpoch = Nothing, _vChunks = [[Digits 8],[Digits 8],[Digits 3]], _vRel = []}
Debug: Identified Platform as: PlatformResult {_platform = Darwin, _distroVersion = Just (General (Version {_vEpoch = Nothing, _vChunks = [[Digits 10],[Digits 15]], _vRel = []}))}
Info: downloading: https://downloads.haskell.org/~ghc/8.8.3/ghc-8.8.3-x86_64-apple-darwin.tar.xz
Info: verifying digest of: /Users/not_root/.ghcup/cache/ghc-8.8.3-x86_64- apple-darwin.tar.xz
Info: Unpacking: /Users/not_root/.ghcup/cache/ghc-8.8.3-x86_64-apple-darwin.tar.xz
Info: Installing GHC (this may take a while)
Error: Build failed with NonZeroExit 77 "./configure" ["--prefix=/Users/not_root/.ghcup/ghc/8.8.3"]
Check the logs at ~/.ghcup/logs and the build directory "/var/folders/n0/g0qh09_s46ndjzmy1jctj7f00000gr/T/ghcup-iyHoc8/ghc-8.8.3" for more clues.
When I had this same issue, I got it working by running xcode-select --install in my terminal to update the macOS command line development tools, as suggested in "Installing haskell on mac OS" on /r/haskell.
This is probably related to improperly installed or outdated XCode command line tools. Unfortunately, it looks like xcode-select --install doesn't work anymore (this is what another answer from 2 years ago suggests).
So try the following:
make sure XCode is installed and in the latest version (do this in App Store)
if it has been recently updated or installed, you must launch the whole XCode app
it will most likely ask for your (root) password after this first launch, which will allow XCode to install/update the XCode command line tools (that's what you need)
you can then quit XCode
it might make sense to restart the zsh terminal (e.g. iTerm if you use it)
try again launching the curl ... Haskell installation script from the terminal (iTerm) and now it's very likely it'll work OK
I am installing asterisk 13.
OS: Linux 3.10.0-229.el7.x86_64
Asterisk version : asterisk-certified-13.21
While running configure command I am having following error:
...
checking for LIBEDIT... no
checking for history_init in -ledit... no
checking for tgetent in -ltermcap... yes
checking for uuid_generate_random in -luuid... no
checking for uuid_generate_random in -le2fs-uuid... no
checking for uuid_generate_random... no
configure: error: *** uuid support not found (this typically means the uuid development package is missing)
...
Error indicates that uuid development package is missing
but i have installed uuid.devel package
Kindly find the out put of the command as follows
command :rpm -qa | grep uuid
output:
uuid-1.6.2-26.el7.x86_64
uuid-devel-1.6.2-26.el7.i686
libuuid-2.23.2-21.el7.x86_64
uuid-1.6.2-26.el7.i686
Hence i believe i have the required package but still i am having this error any ideas for the same.
The question is already answered, but if you came here and you are trying to install Asterisk on Ubuntu, try:
sudo apt install uuid-dev
You also need the libuuid-devel package installed!
I am trying to install (update) my local version of GalSim software on Ubuntu 14.04 by running SCons. I have all the dependencies (boost, TMV etc.) installed and have used it for quite a while now. I use Python2.7. But now, when I run scons from the terminal, I get the following error:
scons: Reading SConscript files ...
SCons is version 2.3.0 using python version 2.7.6
Python is from /usr/include/python
Using the following (non-default) scons options:
PYPREFIX = /usr/lib/python2.7/dist-packages/
TMV_DIR = /media/arunkannawadi/Acads_CMU/Cosmology/WFIRST_Project/tmv0.72/
These can be edited directly in the file gs_scons.conf.
Type scons -h for a full list of available options.
Using python = /usr/bin/python
Using compiler: /usr/bin/g++
compiler version: 4.8.2
Determined that a good number of jobs = 4
Checking for C++ header file fftw3.h... yes
Checking for correct FFTW linkage... yes
Checking for boost header files... yes
Boost version is 1.54.0
Checking for C++ header file TMV.h... yes
TMV version is 0.72
Using TMV_LINK file: /media/arunkannawadi/Acads_CMU/Cosmology /WFIRST_Project/tmv0.72/share/tmv-link
-ltmv -lblas -lgfortran -lpthread -fopenmp
Checking for correct TMV linkage... (this may take a little while)
Checking for correct TMV linkage... yes
Checking if we can build against Python...
Unable to get python include path python executable:
/usr/bin/python
Please fix the above error(s) and rerun scons.
Note: you may want to look through the file INSTALL.md for advice.
Also, if you are having trouble, please check the INSTALL FAQ at
https://github.com/GalSim-developers/GalSim/wiki/Installation%20FAQ
The output of which python is /usr/bin/python and the output of python --version is Python 2.7.6.
Upon further investigation, this question is not about GalSim per se, but rather points out an oddity of later Ubuntu versions.
After going over the config.log file from the failed installation (not posted here), it became apparent that the tests of the installation were passing, but there was a failure in parsing the outputs of those tests. The error message was
sh: 1: Syntax error: Bad fd number
A search pointed me to this other question about that error message:
sh: Syntax error: Bad fd number
which points out that that in Ubuntu 11.x /bin/sh is linked to /bin/dash and not to bin bash. So, the fix for this apparent problem with GalSim installation is to use the solution on that page to correctly link /bin/sh to bash.
I had the inspiration to start messing around with Erlang and I am having problems installing it... I am using Linux Mint 16 (petra). I installed the dependencies, and then downloaded otp_src_17.1.tar.gz and ran 'tar -zxf otp_src_17.1.tar.gz' I then ran ./configure which gave me some errors that made it impossible to run make.
These are the errors I'm getting (actually what I did was I did ./configure > configure.txt to get all the lines it prints as it configures, and it conveniently still printed to the console everything that has errors - neat)
configure: WARNING: No odbc library found skipping odbc
configure: WARNING: "ODBC library - header check failed"
configure: WARNING: "ODBC library - link check failed"
rm: remove write-protected regular file './CONF_INFO'?
configure: WARNING: No GLU headers found, wx will NOT be usable
/home/core/Desktop/otp_src_17.1/lib/wx/./configure: line 5195: wx-config: command not found
/home/core/Desktop/otp_src_17.1/lib/wx/./configure: line 5893: ./CONF_INFO: Permission denied
configure: WARNING:
wxWidgets must be installed on your system.
Please check that wx-config is in path, the directory
where wxWidgets libraries are installed (returned by
'wx-config --libs' or 'wx-config --static --libs' command)
is in LD_LIBRARY_PATH or equivalent variable and
wxWidgets version is 2.8.4 or above.
rm: remove write-protected regular file 'doc/CONF_INFO'?
/home/core/Desktop/otp_src_17.1/erts/configure: line 6466: doc/CONF_INFO: Permission denied
configure: WARNING: No 'xsltproc' command found: the documentation cannot be built
/home/core/Desktop/otp_src_17.1/erts/configure: line 6513: doc/CONF_INFO: Permission denied
configure: WARNING: No 'fop' command found: going to generate placeholder PDF files
configure: error: No curses library functions found
configure: error: /bin/bash '/home/core/Desktop/otp_src_17.1/erts/configure' failed for erts
The thing is - I know that I have the ncurses library, as evidenced by the fact that when I do "sudo apt-get install ncurses-base ncurses-bin" it says:
Reading package lists... Done
Building dependency tree
Reading state information... Done
ncurses-base is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
When I run "locate ncurses" it gives me the following:
/lib/i386-linux-gnu/libncurses.so.5
/lib/i386-linux-gnu/libncurses.so.5.9
/lib/x86_64-linux-gnu/libncurses.so.5
/lib/x86_64-linux-gnu/libncurses.so.5.9
/lib/x86_64-linux-gnu/libncursesw.so.5
/lib/x86_64-linux-gnu/libncursesw.so.5.9
/usr/bin/ncurses5-config
/usr/bin/ncursesw5-config
/usr/lib/vlc/plugins/gui/libncurses_plugin.so
/usr/share/doc/libncurses5
/usr/share/doc/libncursesw5
/usr/share/doc/ncurses-base
/usr/share/doc/ncurses-bin
/usr/share/doc/ncurses-base/changelog.Debian.gz
/usr/share/doc/ncurses-base/copyright
/usr/share/doc/ncurses-bin/FAQ
/usr/share/doc/ncurses-bin/changelog.Debian.gz
/usr/share/doc/ncurses-bin/copyright
/usr/share/lintian/overrides/ncurses-base
/usr/share/man/man1/ncurses5-config.1.gz
/usr/share/man/man1/ncursesw5-config.1.gz
/var/cache/apt/archives/libncurses5_5.9+20130608-1ubuntu1_i386.deb
/var/lib/dpkg/info/libncurses5:amd64.list
/var/lib/dpkg/info/libncurses5:amd64.md5sums
/var/lib/dpkg/info/libncurses5:amd64.postinst
/var/lib/dpkg/info/libncurses5:amd64.postrm
/var/lib/dpkg/info/libncurses5:amd64.shlibs
/var/lib/dpkg/info/libncurses5:amd64.symbols
/var/lib/dpkg/info/libncurses5:i386.list
/var/lib/dpkg/info/libncurses5:i386.md5sums
/var/lib/dpkg/info/libncurses5:i386.postinst
/var/lib/dpkg/info/libncurses5:i386.postrm
/var/lib/dpkg/info/libncurses5:i386.shlibs
/var/lib/dpkg/info/libncurses5:i386.symbols
/var/lib/dpkg/info/libncursesw5:amd64.list
/var/lib/dpkg/info/libncursesw5:amd64.md5sums
/var/lib/dpkg/info/libncursesw5:amd64.postinst
/var/lib/dpkg/info/libncursesw5:amd64.postrm
/var/lib/dpkg/info/libncursesw5:amd64.shlibs
/var/lib/dpkg/info/libncursesw5:amd64.symbols
/var/lib/dpkg/info/ncurses-base.conffiles
/var/lib/dpkg/info/ncurses-base.list
/var/lib/dpkg/info/ncurses-base.md5sums
/var/lib/dpkg/info/ncurses-bin.list
/var/lib/dpkg/info/ncurses-bin.md5sums
I am at a loss as to where to proceed. Thanks for any help
I believe you need to install ncurses-dev
'sudo yum install ncurses-devel.x86_64' prior to running ./configure worked just fine for me. Fedora 21 x64, btw.
After I extracted the tar, the documentation was in '/opt_src_{version}/HOWTO/INSTALL.md. The contents of which states:
Required Utilities
These are the tools you need in order to unpack and build Erlang/OTP.
WARNING: Please have a look at the [Known platform issues][] chapter
before you start.
Unpacking
GNU unzip, or a modern uncompress.
A TAR program that understands the GNU TAR format for long filenames.
Building
GNU make
Compiler -- GNU C Compiler, gcc or the C compiler frontend for LLVM, clang.
Perl 5
GNU m4 -- If HiPE (native code) support is enabled. HiPE can be
disabled using --disable-hipe
ncurses, termcap, or termlib -- The development headers and
libraries are needed, often known as ncurses-devel. Use
--without-termcap to build without any of these libraries. Note that
in this case only the old shell (without any line editing) can be used.
sed -- Stream Editor for basic text transformation.
ncurses just happened to be the only required package I didn't have installed on this development VM. So your mileage may vary.
This was the output of 'locate ncurses' after I installed the ncurses lib:
/usr/lib64/libncurses++.so.5
/usr/lib64/libncurses++.so.5.9
/usr/lib64/libncurses++w.so.5
/usr/lib64/libncurses++w.so.5.9
/usr/lib64/libncurses.so.5
/usr/lib64/libncurses.so.5.9
/usr/lib64/libncursesw.so.5
/usr/lib64/libncursesw.so.5.9
/usr/share/doc/ncurses
/usr/share/doc/ncurses-base
/usr/share/doc/ncurses/ANNOUNCE
/usr/share/doc/ncurses/AUTHORS
/usr/share/doc/ncurses/NEWS.bz2
/usr/share/doc/ncurses/README
/usr/share/doc/ncurses/TO-DO
/usr/share/doc/ncurses-base/README
/usr/share/licenses/ncurses-base
/usr/share/licenses/ncurses-base/COPYING
So I'd say the OP had a corrupt / bad ncurses install. I'm just posting this here because this was the #1 Google result I got when I was too lazy to RTFD.
One alternative is using the option "--without-termcap"
otp_src_18.0/configure file says:
--without-termcap do not use any termcap libraries
(ncurses,curses,termcap,termlib)
./configure --prefix=/home/username/erlang/18.0 --without-termcap
Set your PATH variable as shown below.
export PATH=$PATH=/home/username/erlang/18.0/bin
Not sure about implications though. :)
Hope this helps someone.
./configure --user=boxflux
--group=boxflux
--prefix=/usr/local/nginx-1.3.0
--with-pcre=/usr/lib64
--with-md5=/usr/lib64
--with-sha1=/usr/lib64
--with-zlib=/usr/lib64
--with-libatomic=/usr/lib64
--with-openssl=/usr/lib64 | grep 'not found'
checking for sys/filio.h ... not found
checking for /dev/poll ... not found
checking for kqueue ... not found
checking for crypt() ... not found
checking for F_READAHEAD ... not found
checking for F_NOCACHE ... not found
checking for directio() ... not found
checking for dlopen() ... not found
checking for SO_SETFIB ... not found
checking for SO_ACCEPTFILTER ... not found
checking for setproctitle() ... not found
checking for POSIX semaphores ... not found
checking for struct dirent.d_namlen ... not found
I have a problem installing nginx..
I've already installed gcc, pcre*, zlib*, openssl* by using 'yum'
What's problem with my configuration?
By the way, my computer is 64bit centos6 and I'm now installing nginx 1.3.0 (development version)
--------- ADDITOIN -----------------------
I forgot to mention that it was even worse than I added those --with-*=DIR...
When I run a line of code kolbyjack gave me, the result is..
./configure --user=boxflux --group=boxflux --prefix=/usr/local/nginx-1.3.0 |grep 'not found'
checking for sys/filio.h ... not found
checking for /dev/poll ... not found
checking for kqueue ... not found
checking for crypt() ... not found
checking for F_READAHEAD ... not found
checking for F_NOCACHE ... not found
checking for directio() ... not found
checking for dlopen() ... not found
checking for SO_SETFIB ... not found
checking for SO_ACCEPTFILTER ... not found
checking for setproctitle() ... not found
checking for POSIX semaphores ... not found
checking for struct dirent.d_namlen ... not found
checking for PCRE JIT support ... not found
checking for system md library ... not found
checking for system md5 library ... not found
checking for sha1 in system md library ... not found
Since I am a newbie on centos6.. I really have no any idea on this issue..
please help me..
Often times, I'd prefer not to use "after market" builds from src but instead use the native
CentOS packages.
The "PCRE Library Not Found" error can also be caused when the pcre package is installed but not the pcre-devel package.
Merely, 'yum install pcre-devel' and rerun ./configure.
From ./configure --help:
--with-pcre=DIR set path to PCRE library sources
--with-md5=DIR set path to md5 library sources
--with-sha1=DIR set path to sha1 library sources
--with-zlib=DIR set path to zlib library sources
--with-libatomic=DIR set path to libatomic_ops library sources
--with-openssl=DIR set path to OpenSSL library sources
If you read the help text, each of those options set the directory for the library sources, not the installed version of the library. If the library is already installed on the system, nginx should automatically find it during configure. If it's installed in a nonstandard location, you should use --with-cc-opt and --with-ld-opt to set the include and library paths for nginx to search. Since you've installed all the libs via yum, I expect that all you really need is:
./configure --user=boxflux --group=boxflux --prefix=/usr/local/nginx-1.3.0