I try to install USBIP on Centos 5.11 (Kernel 2.6.18-409.el5) but I always have this error when I type "make" :
make[1]: Entering directory "/root/Downloads/usbip-0.1.7/src"
Making all in lib
make[2]: Entering directory "/root/Downloads/usbip-0.1.7/src/lib"
if /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I.. -Wall -W -Wstrict-prototypes -std=gnu99 -DUSBIDS_FILE='"/usr/local/share/usbip/usb.ids"' -g -O2 -MT libusbip_la-names.lo -MD -MP -MF ".deps/libusbip_la-names.Tpo" -c -o libusbip_la-names.lo "test -f "names.c" || echo './'"names.c; \
then mv -f ".deps/libusbip_la-names.Tpo" ".deps/libusbip_la-names.Plo"; else rm -f ".deps/libusbip_la-names.Tpo"; exit 1; fi
libtool: Version mismatch error. This is libtool 1.9b, but the
libtool: definition of this LT_INIT comes from an older release.
libtool: You should recreate aclocal.m4 with macros from libtool 1.9b
libtool: and run autoconf again.
make[2]: [libusbip_la-names.lo] Error 1
make[2]: Leaving directory "/root/Downloads/usbip-0.1.7/src/lib"
make[1]: [all-recursive] Error 1
make[1]: Leaving directory "/root/Downloads/usbip-0.1.7/src"
make: *** [all] Error 2
I saw several solution on forums, like "autoreconf -vfi" but it does not work for me.
I currently try to reinstall libtool to have the last version but I can't. When I type "yum remove libtool", I'm always able to type "libtool --version" :
[tuk#VM01 Downloads]# libtool --version
ltmain.sh (GNU libtool) 1.9b
Written by Gordon Matzigkeit <gord#gnu.ai.mit.edu>, 1996
Copyright (C) 2004 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
And binaries are always here :
[tuk#VM01 Downloads]# find / -name "libtool*"
/opt/share/man/man1/libtoolize.1
/opt/share/man/man1/libtool.1
/opt/share/aclocal/libtool.m4
/opt/share/info/libtool.info-1
/opt/share/info/libtool.info-2
/opt/share/info/libtool.info
/opt/share/libtool
/opt/bin/libtool
/opt/bin/libtoolize
/usr/local/share/man/man1/libtoolize.1
/usr/local/share/man/man1/libtool.1
/usr/local/share/aclocal/libtool.m4
/usr/local/share/info/libtool.info-1
/usr/local/share/info/libtool.info-2
/usr/local/share/info/libtool.info
/usr/local/share/libtool
/usr/local/bin/libtool
/usr/local/bin/libtoolize
/usr/share/automake-1.9/am/libtool.am
Is there any solution fro me to install USBIP ? Thanks you
Solved !
I haved several binaries for libtool :
[root#SVSLOFLEX2 ~]# which -a libtool
/usr/local/bin/libtool
/usr/bin/libtool
The version of /usr/local/bin is the 1.9b (and it don't work)
I added this line to use another version of libtool (by default) :
export PATH=/usr/bin:$PATH
The version of /usr/bin is the 1.5.22, and it work, USBIP is now installed.
Related
So i'm stuck again.
What I want to do: access a postgreSQL database via database link from Oracle (12.1 - yes, I know it's old ...).
Oracle is running on Centos 7.
Initially I did a
yum -y install postgresql-odbc
yum -y install unixODBC
and was able to access postgreSQL (running on another machine).
But it didn't work for UTF-8 data. Got a hint that this might be due to an old version of unixODBC so I decided to compile from source (as the centos package is rather old).
Compiling and installing unixODBC worked without a hassle:
wget http://www.unixodbc.org/unixODBC-2.3.11.tar.gz
tar xzf unixODBC-2.3.11.tar.gz
cd unixODBC-2.3.11/
./configure
make
make install
But compiling psqlODBC is where it's at:
yum install postgresql
yum install postgresql-devel
wget https://ftp.postgresql.org/pub/odbc/versions/src/psqlodbc-13.02.0000.tar.gz
cd psqlodbc-13.02.0000/
./configure
make
...
Make gives me the following output:
[root#tukanbox psqlodbc-13.02.0000]# make
make all-am
make[1]: Entering directory `/root/psqlodbc-13.02.0000'
/bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I/usr/local/include -I/usr/include -I/usr/include/pgsql/internal -DUNICODE_SUPPORT -g -O2 -Wall -MT psqlodbcw_la-connection.lo -MD -MP -MF .deps/psqlodbcw_la-connection.Tpo -c -o psqlodbcw_la-connection.lo `test -f 'connection.c' || echo './'`connection.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I/usr/local/include -I/usr/include -I/usr/include/pgsql/internal -DUNICODE_SUPPORT -g -O2 -Wall -MT psqlodbcw_la-connection.lo -MD -MP -MF .deps/psqlodbcw_la-connection.Tpo -c connection.c -fPIC -DPIC -o .libs/psqlodbcw_la-connection.o
connection.c: In function 'handle_pgres_error':
connection.c:900:45: error: 'PG_DIAG_SCHEMA_NAME' undeclared (first use in this function)
errschemaname = PQresultErrorField(pgres, PG_DIAG_SCHEMA_NAME);
^
connection.c:900:45: note: each undeclared identifier is reported only once for each function it appears in
connection.c:901:44: error: 'PG_DIAG_TABLE_NAME' undeclared (first use in this function)
errtablename = PQresultErrorField(pgres, PG_DIAG_TABLE_NAME);
^
connection.c:902:45: error: 'PG_DIAG_COLUMN_NAME' undeclared (first use in this function)
errcolumnname = PQresultErrorField(pgres, PG_DIAG_COLUMN_NAME);
^
connection.c:903:47: error: 'PG_DIAG_DATATYPE_NAME' undeclared (first use in this function)
errdatatypename = PQresultErrorField(pgres, PG_DIAG_DATATYPE_NAME);
^
make[1]: *** [psqlodbcw_la-connection.lo] Fehler 1
make[1]: Leaving directory `/root/psqlodbc-13.02.0000'
make: *** [all] Fehler 2
Wondering where to declare these undeclared idenifiers. What does it want to know here? How to solve it?
No answer to the problem of not being able to compile - but an answer to the original problem that the original packages didn't work for UTF8:
https://www.postgresql.org/message-id/OFA166DBFD.19742AF7-ONC1257B6A.005692E6-C1257B6A.0056F890#lladro.net
This has to be done in the database as sysdba:
select fds_class_name from HS_FDS_CLASS;
select * from hs_class_caps where upper(CAP_DESCRIPTION) like '%NCHAR%' and FDS_CLASS_NAME ='ODBC12.1.0.1.0_0017';
exec DBMS_HS.ALTER_CLASS_CAPS('ODBC12.1.0.1.0_0017' , 564, 'ODBC12.1.0.1.0_0017', 564,131071, NULL, NULL);
whenever i am trying to compile the uuid-ossp packege i am getting error.
I have tried to install packages in REDHAt os rpm -qa | grep lib64ossp
lib64ossp-uuid16-1.6.2-10.x86_64
$:/optware/postgres/postgresql-11.2/contrib/uuid-ossp>make
make -C ../../src/backend generated-headers
make[1]: Entering directory `/optware/postgres/postgresql-11.2/src/backend'
make -C catalog distprep generated-header-symlinks
make[2]: Entering directory `/optware/postgres/postgresql-11.2/src/backend/catalog'
make[2]: Nothing to be done for `distprep'.
make[2]: Nothing to be done for `generated-header-symlinks'.
make[2]: Leaving directory `/optware/postgres/postgresql-11.2/src/backend/catalog'
make -C utils distprep generated-header-symlinks
make[2]: Entering directory `/optware/postgres/postgresql-11.2/src/backend/utils'
make[2]: Nothing to be done for `distprep'.
make[2]: Nothing to be done for `generated-header-symlinks'.
make[2]: Leaving directory `/optware/postgres/postgresql-11.2/src/backend/utils'
make[1]: Leaving directory `/optware/postgres/postgresql-11.2/src/backend'
gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -O2 -fPIC -I../../contrib/pgcrypto -I. -I. -I../../src/include -D_GNU_SOURCE -c -o uuid-ossp.o uuid-ossp.c
uuid-ossp.c:37:2: error: #error "please use configure's --with-uuid switch to select a UUID library"
#error "please use configure's --with-uuid switch to select a UUID library"
^
uuid-ossp.c: In function âuuid_generate_internalâ:
uuid-ossp.c:282:5: error: unknown type name âuuid_tâ
uuid_t uu;
^
uuid-ossp.c:283:23: error: âuuid_s_okâ undeclared (first use in this function)
uint32_t status = uuid_s_ok;
^
If you are not building a contrib module with the source tree it is part of, you have to set USE_PGXS:
PATH=/path/to/postgres/binaries:$PATH make USE_PGXS=1
The path must contain the pg_config executable.
To be sure it works, use the contrib source from the same major version as the installed PostgreSQL.
I'm trying to install neovim with linuxbrew on AWS, but I keep getting the following messages, and I can't figure it out :/.
/home/ec2-user/.linuxbrew/bin/libtool: line 10548: /usr/bin/gcc-4.8: No such file or directory
~/dotfiles$ brew install neovim
==> Installing neovim from neovim/neovim
==> Downloading https://github.com/neovim/neovim/archive/v0.1.4.tar.gz
Already downloaded: /home/ec2-user/.cache/Homebrew/neovim-0.1.4.tar.gz
==> Downloading https://github.com/libuv/libuv/archive/v1.8.0.tar.gz
Already downloaded: /home/ec2-user/.cache/Homebrew/neovim--libuv-1.8.0.tar.gz
==> Downloading https://github.com/msgpack/msgpack-c/archive/cpp-1.0.0.tar.gz
Already downloaded: /home/ec2-user/.cache/Homebrew/neovim--msgpack-1.0.0.tar.gz
==> Downloading https://raw.githubusercontent.com/neovim/deps/master/opt/LuaJIT-2.0.4.tar.gz
Already downloaded: /home/ec2-user/.cache/Homebrew/neovim--luajit-2.0.4.tar.gz
==> Downloading https://github.com/keplerproject/luarocks/archive/5d8a16526573b36d5b22aa74866120c998466697.tar.gz
Already downloaded: /home/ec2-user/.cache/Homebrew/neovim--luarocks-998466697.tar.gz
==> Downloading https://github.com/mauke/unibilium/archive/v1.2.0.tar.gz
Already downloaded: /home/ec2-user/.cache/Homebrew/neovim--unibilium-1.2.0.tar.gz
==> Downloading http://www.leonerd.org.uk/code/libtermkey/libtermkey-0.18.tar.gz
Already downloaded: /home/ec2-user/.cache/Homebrew/neovim--libtermkey-0.18.tar.gz
==> Downloading https://github.com/neovim/libvterm/archive/1b745d29d45623aa8d22a7b9288c7b0e331c7088.tar.gz
Already downloaded: /home/ec2-user/.cache/Homebrew/neovim--libvterm-7088.tar.gz
==> Downloading https://github.com/jemalloc/jemalloc/releases/download/4.0.2/jemalloc-4.0.2.tar.bz2
Already downloaded: /home/ec2-user/.cache/Homebrew/neovim--jemalloc-4.0.2.tar.bz2
==> Building third-party dependencies.
==> cmake ../third-party -DUSE_BUNDLED_BUSTED=OFF -DUSE_BUNDLED_LUV=OFF -DUSE_EXISTING_SRC_DIR=ON -DCMAKE_C_FLAGS_RELEASE=-DNDEBUG -DCMAKE_CXX_FLAGS_RELEASE=-DNDEBUG -DCMAKE_INSTALL_PREFIX=/home/ec2-user/
==> make VERBOSE=1
Last 15 lines from /home/ec2-user/.cache/Homebrew/Logs/neovim/02.make:
libtool: compile: /home/ec2-user/.linuxbrew/bin/gcc-5 -I. -Wall -std=c99 -fPIC -c uninames.c -fPIC -DPIC -o .libs/uninames.o
libtool: compile: /home/ec2-user/.linuxbrew/bin/gcc-5 -I. -Wall -std=c99 -fPIC -c uninames.c -o uninames.o >/dev/null 2>&1
libtool --mode=compile --tag=CC /home/ec2-user/.linuxbrew/bin/gcc-5 -I. -DTERMINFO_DIRS='"/etc/terminfo:/lib/terminfo:/usr/share/terminfo:/usr/lib/terminfo:/usr/local/share/terminfo:/usr/local/lib/terminfo"' -Wall -std=c99 -fPIC -o uniutil.lo -c uniutil.c
libtool: compile: /home/ec2-user/.linuxbrew/bin/gcc-5 -I. -DTERMINFO_DIRS=\"/etc/terminfo:/lib/terminfo:/usr/share/terminfo:/usr/lib/terminfo:/usr/local/share/terminfo:/usr/local/lib/terminfo\" -Wall -std=c99 -fPIC -c uniutil.c -fPIC -DPIC -o .libs/uniutil.o
libtool: compile: /home/ec2-user/.linuxbrew/bin/gcc-5 -I. -DTERMINFO_DIRS=\"/etc/terminfo:/lib/terminfo:/usr/share/terminfo:/usr/lib/terminfo:/usr/local/share/terminfo:/usr/local/lib/terminfo\" -Wall -std=c99 -fPIC -c uniutil.c -o uniutil.o >/dev/null 2>&1
libtool --mode=link --tag=CC /home/ec2-user/.linuxbrew/bin/gcc-5 -L/home/ec2-user/.linuxbrew/lib -Wl,--dynamic-linker=/home/ec2-user/.linuxbrew/lib/ld.so -Wl,-rpath,/home/ec2-user/.linuxbrew/lib -rpath '/tmp/neovim-20160518-12137-13p0ite/neovim-0.1.4/deps-build/usr/lib' -version-info 3:0:3 -o libunibilium.la unibilium.lo uninames.lo uniutil.lo
libtool: link: /usr/bin/gcc-4.8 -shared -fPIC -DPIC .libs/unibilium.o .libs/uninames.o .libs/uniutil.o -L/home/ec2-user/.linuxbrew/lib -Wl,--dynamic-linker=/home/ec2-user/.linuxbrew/lib/ld.so -Wl,-rpath -Wl,/home/ec2-user/.linuxbrew/lib -Wl,-soname -Wl,libunibilium.so.0 -o .libs/libunibilium.so.0.3.0
/home/ec2-user/.linuxbrew/bin/libtool: line 10548: /usr/bin/gcc-4.8: No such file or directory
make[3]: *** [libunibilium.la] Error 127
make[3]: Leaving directory `/tmp/neovim-20160518-12137-13p0ite/neovim-0.1.4/deps-build/build/src/unibilium'
make[2]: *** [build/src/unibilium-stamp/unibilium-build] Error 2
make[2]: Leaving directory `/tmp/neovim-20160518-12137-13p0ite/neovim-0.1.4/deps-build'
make[1]: *** [CMakeFiles/unibilium.dir/all] Error 2
make[1]: Leaving directory `/tmp/neovim-20160518-12137-13p0ite/neovim-0.1.4/deps-build'
make: *** [all] Error 2
READ THIS: https://github.com/Linuxbrew/brew/blob/master/share/doc/homebrew/Troubleshooting.md#troubleshooting
If reporting this issue please do so at (not Homebrew/brew):
https://github.com/neovim/homebrew-neovim/issues
These open issues may also help:
Neovim Fails to Install on Standalone Linuxbrew: libmsgpack.so Error https://github.com/neovim/homebrew-neovim/issues/156
Neovim failing to build with homebrew on OS X 10.9.5 https://github.com/neovim/homebrew-neovim/issues/153
Can't install via homebrew-neovim if luarocks path is set explicitly https://github.com/neovim/homebrew-neovim/issues/149
Error when trying to install neovim in my Ubuntu 14.04 virtual machine. https://github.com/neovim/homebrew-neovim/issues/134
I had the same issue. It is a problem of the libtool formula
https://github.com/Linuxbrew/homebrew-core/issues/376
I fixed by doing
brew update
brew reinstall -s libtool
brew install neovim/neovim/neovim
When I try to install libapreq2, I get the error:
libtool: link: CURRENT `' must be a nonnegative integer
libtool: link: `:0:8' is not valid version information
How do I resolve it?
bash-3.2$ wget http://search.cpan.org/CPAN/authors/id/I/IS/ISAAC/libapreq2-2.13.tar.gz
bash-3.2$ tar xvf libapreq2-2.13.tar.gz
bash-3.2$ ./configure --enable-perl-glue --with-apache2-apxs=/install/others/apache2/bin/apxs --prefix=/install/others --with-apache2-src=/install/others/httpd-2.2.25 --with-apache2-httpd=/install/others/apache2/bin/httpd --with-apr-config=/install/others/httpd-2.2.25/srclib/apr/apr-1-config --with-apu-config=/install/others/httpd-2.2.25/srclib/apr-util/apu-1-config
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make sets $(MAKE)... (cached) yes
checking for gcc... gcc
........
checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
(cached) (cached) checking how to hardcode library paths into programs... immediate
appending configuration tag "F77" to libtool
checking for ranlib... (cached) ranlib
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln -s works... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for /install/others/httpd-2.2.25/include/httpd.h... yes
checking for /install/others/httpd-2.2.25/srclib/apr/apr-1-config... yes
checking for /install/others/httpd-2.2.25/srclib/apr-util/apu-1-config... yes
checking for perl... perl
checking for ExtUtils::XSBuilder... yes
checking for mod_perl2... yes
checking for Apache::Test... yes
checking for ExtUtils::MakeMaker... yes
setting APR_INCLUDES to " -I/install/others/httpd-2.2.25/srclib/apr/include "
adding "-I/install/others/httpd-2.2.25/srclib/apr-util/include" to APR_INCLUDES
adding "-I/install/others/httpd-2.2.25/srclib/apr-util/xml/expat/lib" to APR_INCLUDES
setting APR_LTFLAGS to " /install/others/httpd-2.2.25/srclib/apr/libapr-1.la"
adding "/install/others/httpd-2.2.25/srclib/apr-util/libaprutil-1.la" to APR_LTFLAGS
setting APR_LIBS to " -luuid -lrt -lcrypt -lpthread -ldl"
adding "/install/others/httpd-2.2.25/srclib/apr-util/xml/expat/libexpat.la" to APR_LIBS
setting APR_LDFLAGS to " -L/install/others/httpd-2.2.25/srclib/apr-util -laprutil-1 "
adding "-L/install/others/httpd-2.2.25/srclib/apr" to APR_LDFLAGS
adding "-lapr-1" to APR_LDFLAGS
setting CPPFLAGS to " -DLINUX -D_REENTRANT -D_GNU_SOURCE"
expr: syntax error
libapreq2 Version: 2.8.0
configure: creating ./config.status
config.status: creating Makefile
config.status: creating include/Makefile
config.status: creating library/Makefile
config.status: creating library/t/Makefile
config.status: creating module/Makefile
config.status: creating module/apache2/Makefile
config.status: creating glue/Makefile
config.status: creating build/doxygen.conf
config.status: creating include/groups.dox
config.status: creating apreq2-config
config.status: creating include/apreq_config.h
config.status: executing depfiles commands
bash-3.2$
bash-3.2$
bash-3.2$
bash-3.2$ make
Making all in .
make[1]: Entering directory `/install/others/libapreq2-2.13'
make[1]: Nothing to be done for `all-am'.
make[1]: Leaving directory `/install/others/libapreq2-2.13'
Making all in include
make[1]: Entering directory `/install/others/libapreq2-2.13/include'
make all-am
make[2]: Entering directory `/install/others/libapreq2-2.13/include'
make[2]: Leaving directory `/install/others/libapreq2-2.13/include'
make[1]: Leaving directory `/install/others/libapreq2-2.13/include'
Making all in library
make[1]: Entering directory `/install/others/libapreq2-2.13/library'
make all-am
make[2]: Entering directory `/install/others/libapreq2-2.13/library'
/bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../include -I/install/others/httpd-2.2.25/srclib/apr/include -I/install/others/httpd-2.2.25/srclib/apr-util/include -I/install/others/httpd-2.2.25/srclib/apr-util/xml/expat/lib -DLINUX -D_REENTRANT -D_GNU_SOURCE -g -O2 -MT util.lo -MD -MP -MF .deps/util.Tpo -c -o util.lo util.c
mkdir .libs
gcc -DHAVE_CONFIG_H -I. -I../include -I/install/others/httpd-2.2.25/srclib/apr/include -I/install/others/httpd-2.2.25/srclib/apr-util/include -I/install/others/httpd-2.2.25/srclib/apr-util/xml/expat/lib -DLINUX -D_REENTRANT -D_GNU_SOURCE -g -O2 -MT util.lo -MD -MP -MF .deps/util.Tpo -c util.c -fPIC -DPIC -o .libs/util.o
gcc -DHAVE_CONFIG_H -I. -I../include -I/install/others/httpd-2.2.25/srclib/apr/include -I/install/others/httpd-2.2.25/srclib/apr-util/include -I/install/others/httpd-2.2.25/srclib/apr-util/xml/expat/lib -DLINUX -D_REENTRANT -D_GNU_SOURCE -g -O2 -MT util.lo -MD -MP -MF .deps/util.Tpo -c util.c -o util.o >/dev/null 2>&1
.........
mv -f .deps/module_cgi.Tpo .deps/module_cgi.Plo
/bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../include -I/install/others/httpd-2.2.25/srclib/apr/include -I/install/others/httpd-2.2.25/srclib/apr-util/include -I/install/others/httpd-2.2.25/srclib/apr-util/xml/expat/lib -DLINUX -D_REENTRANT -D_GNU_SOURCE -g -O2 -MT error.lo -MD -MP -MF .deps/error.Tpo -c -o error.lo error.c
gcc -DHAVE_CONFIG_H -I. -I../include -I/install/others/httpd-2.2.25/srclib/apr/include -I/install/others/httpd-2.2.25/srclib/apr-util/include -I/install/others/httpd-2.2.25/srclib/apr-util/xml/expat/lib -DLINUX -D_REENTRANT -D_GNU_SOURCE -g -O2 -MT error.lo -MD -MP -MF .deps/error.Tpo -c error.c -fPIC -DPIC -o .libs/error.o
gcc -DHAVE_CONFIG_H -I. -I../include -I/install/others/httpd-2.2.25/srclib/apr/include -I/install/others/httpd-2.2.25/srclib/apr-util/include -I/install/others/httpd-2.2.25/srclib/apr-util/xml/expat/lib -DLINUX -D_REENTRANT -D_GNU_SOURCE -g -O2 -MT error.lo -MD -MP -MF .deps/error.Tpo -c error.c -o error.o >/dev/null 2>&1
mv -f .deps/error.Tpo .deps/error.Plo
/bin/sh ../libtool --tag=CC --mode=link gcc -g -O2 -version-info :0:8 /install/others/httpd-2.2.25/srclib/apr/libapr-1.la /install/others/httpd-2.2.25/srclib/apr-util/libaprutil-1.la -luuid -lrt -lcrypt -lpthread -ldl /install/others/httpd-2.2.25/srclib/apr-util/xml/expat/libexpat.la -o libapreq2.la -rpath /install/others/lib util.lo version.lo cookie.lo param.lo parser.lo parser_urlencoded.lo parser_header.lo parser_multipart.lo module.lo module_custom.lo module_cgi.lo error.lo
libtool: link: CURRENT `' must be a nonnegative integer
libtool: link: `:0:8' is not valid version information
make[2]: *** [libapreq2.la] Error 1
make[2]: Leaving directory `/install/others/libapreq2-2.13/library'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/install/others/libapreq2-2.13/library'
make: *** [all-recursive] Error 1
bash-3.2$
bash-3.2$
bash-3.2$ make install
Making install in .
make[1]: Entering directory `/install/others/libapreq2-2.13'
make[2]: Entering directory `/install/others/libapreq2-2.13'
test -z "/install/others/bin" || /bin/mkdir -p "/install/others/bin"
/usr/bin/install -c 'apreq2-config' '/install/others/bin/apreq2-config'
cd /install/others/httpd-2.2.25; make install
make[3]: Entering directory `/install/others/httpd-2.2.25'
Making install in srclib
make[4]: Entering directory `/install/others/httpd-2.2.25/srclib'
Making install in apr
make[5]: Entering directory `/install/others/httpd-2.2.25/srclib/apr'
make[6]: Entering directory `/install/others/httpd-2.2.25/srclib/apr'
make[6]: Nothing to be done for `local-all'.
make[6]: Leaving directory `/install/others/httpd-2.2.25/srclib/apr'
/install/others/httpd-2.2.25/srclib/apr/build/mkdir.sh /install/others/apache2/lib /install/others/apache2/bin /install/others/apache2/build \
/install/others/apache2/lib/pkgconfig /install/others/apache2/include
/usr/bin/install -c -m 644 /install/others/httpd-2.2.25/srclib/apr/include/apr.h /install/others/apache2/include
for f in /install/others/httpd-2.2.25/srclib/apr/include/apr_*.h; do \
/usr/bin/install -c -m 644 ${f} /install/others/apache2/include; \
done
/bin/sh /install/others/httpd-2.2.25/srclib/apr/libtool --mode=install /usr/bin/install -c -m 755 libapr-1.la /install/others/apache2/lib
/usr/bin/install -c -m 755 .libs/libapr-1.so.0.4.8 /install/others/apache2/lib/libapr-1.so.0.4.8
(cd /install/others/apache2/lib && { ln -s -f libapr-1.so.0.4.8 libapr-1.so.0 || { rm -f libapr-1.so.0 && ln -s libapr-1.so.0.4.8 libapr-1.so.0; }; })
(cd /install/others/apache2/lib && { ln -s -f libapr-1.so.0.4.8 libapr-1.so || { rm -f libapr-1.so && ln -s libapr-1.so.0.4.8 libapr-1.so; }; })
/usr/bin/install -c -m 755 .libs/libapr-1.lai /install/others/apache2/lib/libapr-1.la
/usr/bin/install -c -m 755 .libs/libapr-1.a /install/others/apache2/lib/libapr-1.a
chmod 644 /install/others/apache2/lib/libapr-1.a
ranlib /install/others/apache2/lib/libapr-1.a
PATH="$PATH:/sbin" ldconfig -n /install/others/apache2/lib
----------------------------------------------------------------------
Libraries have been installed in:
/install/others/apache2/lib
If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
- add LIBDIR to the `LD_LIBRARY_PATH' environment variable
during execution
- add LIBDIR to the `LD_RUN_PATH' environment variable
during linking
- use the `-Wl,--rpath -Wl,LIBDIR' linker flag
- have your system administrator add LIBDIR to `/etc/ld.so.conf'
See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
/usr/bin/install -c -m 644 apr.exp /install/others/apache2/lib/apr.exp
/usr/bin/install -c -m 644 apr.pc /install/others/apache2/lib/pkgconfig/apr-1.pc
for f in libtool shlibtool; do \
if test -f ${f}; then /usr/bin/install -c -m 755 ${f} /install/others/apache2/build; fi; \
done
/usr/bin/install -c -m 755 /install/others/httpd-2.2.25/srclib/apr/build/mkdir.sh /install/others/apache2/build
for f in make_exports.awk make_var_export.awk; do \
/usr/bin/install -c -m 644 /install/others/httpd-2.2.25/srclib/apr/build/${f} /install/others/apache2/build; \
done
.............
/usr/bin/install -c .libs/libexpat.lai /install/others/apache2/lib/libexpat.la
/usr/bin/install -c .libs/libexpat.a /install/others/apache2/lib/libexpat.a
chmod 644 /install/others/apache2/lib/libexpat.a
ranlib /install/others/apache2/lib/libexpat.a
PATH="$PATH:/sbin" ldconfig -n /install/others/apache2/lib
----------------------------------------------------------------------
Libraries have been installed in:
/install/others/apache2/lib
If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
- add LIBDIR to the `LD_LIBRARY_PATH' environment variable
during execution
- add LIBDIR to the `LD_RUN_PATH' environment variable
during linking
- use the `-Wl,--rpath -Wl,LIBDIR' linker flag
- have your system administrator add LIBDIR to `/etc/ld.so.conf'
See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
/usr/bin/install -c -m 644 ./lib/expat.h /install/others/apache2/include
make[6]: Leaving directory `/install/others/httpd-2.2.25/srclib/apr-util/xml/expat'
/bin/sh /install/others/httpd-2.2.25/srclib/apr/libtool --mode=install /usr/bin/install -c -m 755 libaprutil-1.la /install/others/apache2/lib
libtool: install: warning: relinking `libaprutil-1.la'
(cd /install/others/httpd-2.2.25/srclib/apr-util; /bin/sh /install/others/httpd-2.2.25/srclib/apr/libtool --silent --mode=relink gcc -g -O2 -pthread -DHAVE_CONFIG_H -DLINUX -D_REENTRANT -D_GNU_SOURCE -I/install/others/httpd-2.2.25/srclib/apr-util/include -I/install/others/httpd-2.2.25/srclib/apr-util/include/private -I/install/others/httpd-2.2.25/srclib/apr/include -I/install/others/httpd-2.2.25/srclib/apr-util/xml/expat/lib -version-info 5:2:5 -o libaprutil-1.la -rpath /install/others/apache2/lib buckets/apr_brigade.lo buckets/apr_buckets.lo buckets/apr_buckets_alloc.lo buckets/apr_buckets_eos.lo buckets/apr_buckets_file.lo buckets/apr_buckets_flush.lo buckets/apr_buckets_heap.lo buckets/apr_buckets_mmap.lo buckets/apr_buckets_pipe.lo buckets/apr_buckets_pool.lo buckets/apr_buckets_refcount.lo buckets/apr_buckets_simple.lo buckets/apr_buckets_socket.lo crypto/apr_crypto.lo crypto/apr_md4.lo crypto/apr_md5.lo crypto/apr_passwd.lo crypto/apr_sha1.lo crypto/crypt_blowfish.lo crypto/getuuid.lo crypto/uuid.lo dbd/apr_dbd.lo dbm/apr_dbm.lo dbm/apr_dbm_sdbm.lo dbm/sdbm/sdbm.lo dbm/sdbm/sdbm_hash.lo dbm/sdbm/sdbm_lock.lo dbm/sdbm/sdbm_pair.lo encoding/apr_base64.lo hooks/apr_hooks.lo ldap/apr_ldap_stub.lo ldap/apr_ldap_url.lo memcache/apr_memcache.lo misc/apr_date.lo misc/apr_queue.lo misc/apr_reslist.lo misc/apr_rmm.lo misc/apr_thread_pool.lo misc/apu_dso.lo misc/apu_version.lo strmatch/apr_strmatch.lo uri/apr_uri.lo xlate/xlate.lo xml/apr_xml.lo -luuid -lrt -lcrypt -lpthread -ldl /install/others/httpd-2.2.25/srclib/apr-util/xml/expat/libexpat.la /install/others/httpd-2.2.25/srclib/apr/libapr-1.la -luuid -lrt -lcrypt -lpthread -ldl )
/usr/bin/install -c -m 755 .libs/libaprutil-1.so.0.5.2T /install/others/apache2/lib/libaprutil-1.so.0.5.2
(cd /install/others/apache2/lib && { ln -s -f libaprutil-1.so.0.5.2 libaprutil-1.so.0 || { rm -f libaprutil-1.so.0 && ln -s libaprutil-1.so.0.5.2 libaprutil-1.so.0; }; })
(cd /install/others/apache2/lib && { ln -s -f libaprutil-1.so.0.5.2 libaprutil-1.so || { rm -f libaprutil-1.so && ln -s libaprutil-1.so.0.5.2 libaprutil-1.so; }; })
/usr/bin/install -c -m 755 .libs/libaprutil-1.lai /install/others/apache2/lib/libaprutil-1.la
/usr/bin/install -c -m 755 .libs/libaprutil-1.a /install/others/apache2/lib/libaprutil-1.a
chmod 644 /install/others/apache2/lib/libaprutil-1.a
ranlib /install/others/apache2/lib/libaprutil-1.a
PATH="$PATH:/sbin" ldconfig -n /install/others/apache2/lib
----------------------------------------------------------------------
Libraries have been installed in:
/install/others/apache2/lib
If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
- add LIBDIR to the `LD_LIBRARY_PATH' environment variable
during execution
- add LIBDIR to the `LD_RUN_PATH' environment variable
during linking
- use the `-Wl,--rpath -Wl,LIBDIR' linker flag
- have your system administrator add LIBDIR to `/etc/ld.so.conf'
See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
/usr/bin/install -c -m 644 aprutil.exp /install/others/apache2/lib
/usr/bin/install -c -m 755 apu-config.out /install/others/apache2/bin/apu-1-config
make[5]: Leaving directory `/install/others/httpd-2.2.25/srclib/apr-util'
Making install in pcre
make[5]: Entering directory `/install/others/httpd-2.2.25/srclib/pcre'
make[6]: Entering directory `/install/others/httpd-2.2.25/srclib/pcre'
make[6]: Leaving directory `/install/others/httpd-2.2.25/srclib/pcre'
make[5]: Leaving directory `/install/others/httpd-2.2.25/srclib/pcre'
..................
Making install in support
make[4]: Entering directory `/install/others/httpd-2.2.25/support'
make[5]: Entering directory `/install/others/httpd-2.2.25/support'
make[5]: Leaving directory `/install/others/httpd-2.2.25/support'
make[4]: Leaving directory `/install/others/httpd-2.2.25/support'
make[4]: Entering directory `/install/others/httpd-2.2.25'
Installing configuration files
[PRESERVING EXISTING HTDOCS SUBDIR: /install/others/apache2/htdocs]
[PRESERVING EXISTING ERROR SUBDIR: /install/others/apache2/error]
[PRESERVING EXISTING ICONS SUBDIR: /install/others/apache2/icons]
[PRESERVING EXISTING CGI SUBDIR: /install/others/apache2/cgi-bin]
Installing header files
Installing build system files
Installing man pages and online manual
make[4]: Leaving directory `/install/others/httpd-2.2.25'
make[3]: Leaving directory `/install/others/httpd-2.2.25'
make[2]: Nothing to be done for `install-data-am'.
make[2]: Leaving directory `/install/others/libapreq2-2.13'
make[1]: Leaving directory `/install/others/libapreq2-2.13'
Making install in include
make[1]: Entering directory `/install/others/libapreq2-2.13/include'
make[2]: Entering directory `/install/others/libapreq2-2.13/include'
make[2]: Nothing to be done for `install-exec-am'.
test -z "/install/others/include/apreq2" || /bin/mkdir -p "/install/others/include/apreq2"
/usr/bin/install -c -m 644 'apreq.h' '/install/others/include/apreq2/apreq.h'
/usr/bin/install -c -m 644 'apreq_cookie.h' '/install/others/include/apreq2/apreq_cookie.h'
/usr/bin/install -c -m 644 'apreq_error.h' '/install/others/include/apreq2/apreq_error.h'
/usr/bin/install -c -m 644 'apreq_module.h' '/install/others/include/apreq2/apreq_module.h'
/usr/bin/install -c -m 644 'apreq_param.h' '/install/others/include/apreq2/apreq_param.h'
/usr/bin/install -c -m 644 'apreq_parser.h' '/install/others/include/apreq2/apreq_parser.h'
/usr/bin/install -c -m 644 'apreq_util.h' '/install/others/include/apreq2/apreq_util.h'
/usr/bin/install -c -m 644 'apreq_version.h' '/install/others/include/apreq2/apreq_version.h'
make[2]: Leaving directory `/install/others/libapreq2-2.13/include'
make[1]: Leaving directory `/install/others/libapreq2-2.13/include'
Making install in library
make[1]: Entering directory `/install/others/libapreq2-2.13/library'
make install-am
make[2]: Entering directory `/install/others/libapreq2-2.13/library'
/bin/sh ../libtool --tag=CC --mode=link gcc -g -O2 -version-info :0:8 /install/others/httpd-2.2.25/srclib/apr/libapr-1.la /install/others/httpd-2.2.25/srclib/apr-util/libaprutil-1.la -luuid -lrt -lcrypt -lpthread -ldl /install/others/httpd-2.2.25/srclib/apr-util/xml/expat/libexpat.la -o libapreq2.la -rpath /install/others/lib util.lo version.lo cookie.lo param.lo parser.lo parser_urlencoded.lo parser_header.lo parser_multipart.lo module.lo module_custom.lo module_cgi.lo error.lo
libtool: link: CURRENT `' must be a nonnegative integer
libtool: link: `:0:8' is not valid version information
make[2]: *** [libapreq2.la] Error 1
make[2]: Leaving directory `/install/others/libapreq2-2.13/library'
make[1]: *** [install] Error 2
make[1]: Leaving directory `/install/others/libapreq2-2.13/library'
make: *** [install-recursive] Error 1
Note: I don't have root access. I am installing in home directory /install/others. The server is RedHat Linux.
Here is a success story: http://www.perlmonks.org/?node_id=660325
### change the path accordingly
./configure --enable-shared --with-gnu-ld --enable-perl-glue --with-perl=/usr/bin/perl --with-apache2-apxs=/usr/sbin/apxs --with-httpd=/usr/sbin/httpd
/sbin/ldconfig /usr/lib
Other solution is to use perlbrew or local::lib and install a local perl in you home, then you maybe able to install it with cpanm.
i am trying to build binutils 2.19.1 with mingw/msys using following commands:
export PREFIX=/usr/local/cross
export TARGET=i586-elf
cd /usr/src
mkdir build-binutils
cd /usr/src/build-binutils
../binutils-x.xx/configure --target=$TARGET --prefix=$PREFIX --disable-nls
make all
make install
and im getting following errors:
/bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../../binuti
ls-2.19.1/bfd -I. -D__USE_MINGW_FSEEK -I. -I../../binutils-2.19.1/bfd -I../..
/binutils-2.19.1/bfd/../include -W -Wall -Wstrict-prototypes -Wmissing-proto
types -Wno-format -Werror -g -O2 -D__USE_MINGW_ACCESS -c -o archive.lo ../../bin
utils-2.19.1/bfd/archive.c
./libtool: line 2258: cygpath: command not found
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../../binutils-2.19.1/bfd -I. -D__U
SE_MINGW_FSEEK -I. -I../../binutils-2.19.1/bfd -I../../binutils-2.19.1/bfd/../in
clude -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wno-format -Werror -g -
O2 -D__USE_MINGW_ACCESS -c "" -o archive.o
gcc.exe: error: : No such file or directory
gcc.exe: fatal error: no input files
compilation terminated.
make[3]: *** [archive.lo] Error 1
make[3]: Leaving directory `/usr/src/build-binutils/bfd'
make[2]: *** [install-recursive] Error 1
make[2]: Leaving directory `/usr/src/build-binutils/bfd'
make[1]: *** [install-bfd] Error 2
make[1]: Leaving directory `/usr/src/build-binutils'
make: *** [install] Error 2
/x.sh: line 8: ../gcc-4.5.0/configure: No such file or directory
make: *** No rule to make target `all-gcc'. Stop.
make: *** No rule to make target `install-gcc'. Stop.
i am getting the same error even for the diff binutils version,i have tried binutils-2.19.1, 2.22.0, 2.23.1
so what can be the problem ??
also my mingw's gcc compiler version is 4.6.2
i've also tried the command
make CFLAGS="-Os -w"
bt still the same problem persists
I'm getting a similar error ("cygpath: command not found"), but with newer versions. FWICT there is a line within binutils that assumes that Cygwin is present, although I didn't see any notes in the build instructions saying that Cygwin was required (I might have missed it, though).
I suppose the correct approach would be to install Cygwin, but I'm not sure if that will interfere with Mingw in other ways. It looks like binutils is just trying to use cygpath to convert between O/S path naming conventions, so I got around this problem by creating a little dummy cygpath shell script:
#options described at http://cygwin-lite.sourceforge.net/html/cygpath.html
#echo "MISSING CYGPATH"
if [ "x$1" == "x-w" ]
then
echo $2 #just echo path name back as-is
else
read -p "MISSING CYGPATH. PARAMS WERE: 1=$1 2=$2 3=$3 4=$4 5=$5"
fi
I placed this on the PATH so binutils could find it, instead of getting an error during the build. This script just echoes the path name back as-is (for the path renaming scenario), since Windows seems to be able to understand Unix-style paths anyways these days (and I was running on Windows). For anything else, this script will pause and display the first few command line parameters, to provide some hints as to what further functionality is needed.
HTH someone get a little farther