DBD-Oracle-1.76 installation issue - linux

I am setting up a new server for POSTGRESQL, so we have to migrate from ORACLE to POSTGRES while installing DBD-Oracle-1.76 package. However, we are getting error even though we have exported ORACLE_BASE, ORACLE_HOME, LD_LIBRARY, LD_LIBRARY_PATH.
Here is what I have tried:
make
rm -f blib/arch/auto/DBD/Oracle/Oracle.so
gcc -shared -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -Wl,-z,relro Oracle.o dbdimp.o oci8.o -o blib/arch/auto/DBD/Oracle/Oracle.so \
-L/optware/oracle/12.2.0.1/client_1/lib -lclntsh -ldl -lm -lpthread -lnsl -lirc -limf -lirc -lrt -laio -lresolv -lsvml \
Here is the error:
/bin/ld: cannot find -laio
collect2: error: ld returned 1 exit status
make: *** [blib/arch/auto/DBD/Oracle/Oracle.so] Error 1
Any ideas? Any help would be greatly appreciated!

If you're on Redhat/Fedora/RHEL/CentOS then try this before make:
sudo yum install libaio-devel
If Ubuntu (or Debian?) try:
sudo apt install libaio-dev
...or sudo apt-get install libaio libaio1 libaio-dev
I also needed:
export ORACLE_HOME=/wherever/oracle18-instantclient/instantclient_18_5
export LD_LIBRARY_PATH="$ORACLE_HOME:/usr/lib/x86_64-linux-gnu/"
Error while installing DBD::Oracle might be helpful.

Related

Facing issue while installing Apache 2.4.53 on RHEL 7.9

I am trying to install 2.4.53 on RHEL Linux 7.9.I am facing the below error when I do sudo make && make install. sudo ./configure works fine which I ran before sudo make && make install.
/bin/sh /opt/idam/httpd-2.4.53/srclib/apr/libtool --mode=install /bin/install -c -m 755 libaprutil-1.la /usr/local/apache2/lib
libtool: install: warning: relinking libaprutil-1.la' (cd /opt/idam/httpd-2.4.53/srclib/apr-util; /bin/sh /opt/idam/httpd-2.4.53/srclib/apr/libtool --silent --mode=relink gcc -g -O2 -pthread -DHAVE_CONFIG_H -DLINUX -D_REENTRANT -D_GNU_SOURCE -I/opt/idam/httpd-2.4.53/srclib/apr-util/include -I/opt/idam/httpd-2.4.53/srclib/apr-util/include/private -I/opt/idam/httpd-2.4.53/srclib/apr/include -version-info 5:4:5 -o libaprutil-1.la -rpath /usr/local/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 -lexpat /opt/idam/httpd-2.4.53/srclib/apr/libapr-1.la -luuid -lrt -lcrypt -lpthread -ldl ) mv: cannot move 'libaprutil-1.so.0.5.4' to 'libaprutil-1.so.0.5.4U': Permission denied libtool: install: error: relink libaprutil-1.la' with the above command before installing it
make[2]: *** [install] Error 1
make[2]: Leaving directory /opt/idam/httpd-2.4.53/srclib/apr-util' make[1]: *** [install-recursive] Error 1 make[1]: Leaving directory /opt/idam/httpd-2.4.53/srclib'
make: *** [install-recursive] Error 1
I tried sudo ./configure --enable-so --enable-ssl --with-mpm=prefork --with-included-apr --with-included-apr-util too but didn't worked.
Also instaling gcc packages on the system didn't worked.

unable to install Nodejs on centos-fatal error: headers: No such file or directory

I am trying to install nodejs from source. When I run 'make install' I am getting:
node-v6.3.1]# make install
make -C out BUILDTYPE=Release V=1
make[1]: Entering directory `/home/centos/node-v6.3.1/out'
g++ -I../deps/gtest -I../deps/gtest/include -pthread -Wall -Wextra -Wno-unused-parameter -m64 -Wno-missing-field-initializers -O3 -fno-omit-frame-pointer -fno-rtti -fno-exceptions -std=gnu++0x -MMD -MF /home/centos/node-v6.3.1/out/Release/.deps//home/centos/node-v6.3.1/out/Release/obj.target/gtest/deps/gtest/src/gtest-death-test.o.d.raw -c -o /home/centos/node-v6.3.1/out/Release/obj.target/gtest/deps/gtest/src/gtest-death-test.o ../deps/gtest/src/gtest-death-test.cc
In file included from ../deps/gtest/include/gtest/internal/gtest-internal.h:40:0,
from ../deps/gtest/include/gtest/internal/gtest-death-test-internal.h:40,
from ../deps/gtest/include/gtest/gtest-death-test.h:41,
from ../deps/gtest/src/gtest-death-test.cc:34:
../deps/gtest/include/gtest/internal/gtest-port.h:259:41: fatal error: ctype.h: No such file or directory
#include <ctype.h> // for isspace, etc
I installed c and c++ libraries as well using: yum -y install gcc gcc-c++ make.
I also tried to install via rpm:
error: %pre(nodejs-1:6.3.1-1nodesource.el7.centos.x86_64) scriptlet failed, exit status 127
Error in PREIN scriptlet in rpm package 1:nodejs-6.3.1-1nodesource.el7.centos.x8 6_64
Verifying : 1:nodejs-6.3.1-1nodesource.el7.centos.x86_64 1/1
Failed:
nodejs.x86_64 1:6.3.1-1nodesource.el7.centos
Could you please anyone help what might be the issue. Thanks

While using make command to install touch egg

I'm trying to install touchegg,
Following is the error i'm getting while trying to use make command in su mode:
root#PG04954:/home/esrsank/Downloads/touchegg-1.1# make
g++ -m64 -Wl,-O1 -o touchegg Config.o GestureCollector.o GestureHandler.o
GestureFactory.o Gesture.o GestureTypeEnum.o GestureDirectionEnum.o
ActionTypeEnum.o ActionFactory.o MinimizeWindow.o CloseWindow.o
MaximizeRestoreWindow.o ShowDesktop.o SendKeys.o ChangeDesktop.o
ResizeWindow.o MoveWindow.o RunCommand.o DragAndDrop.o ChangeViewport.o
MouseClick.o Scroll.o WindowListener.o Main.o Touchegg.o moc_GestureCollector.o
moc_GestureHandler.o moc_GestureTypeEnum.o moc_GestureDirectionEnum.o
moc_ActionTypeEnum.o moc_WindowListener.o moc_Touchegg.o -
L/usr/lib/x86_64-linux-gnu -lutouch-geis -lX11 -lXtst -lXext -lQtXml -lQtGui
-lQtCore -lpthread
/usr/bin/ld: cannot find -lutouch-geis
collect2: ld returned 1 exit status
make: *** [touchegg] Error 1
Any Solutions?
It can't find libutouch-geis, either because it isn't installed or because the location of this library isn't in the linker path.
The instructions on this page suggest installing the following:
$ sudo apt-get install build-essential libqt4-dev utouch libgeis-dev libx11-6 libxtst-dev
then running:
$ qmake
$ make
$ sudo make install

Building the FBX SDK on Linux

Trying to get one of the samples compiled on Ubuntu 12.04
I’m using
make -f Makefile-x64-static
However, I get the error
make: gcc4: Command not found
I tried switching from gcc4 to gcc in the makefile.
However, I get the compile errors
note: #pragma message: IMPORTANT NOTE: The FBX SDK API changed substantially. Please define FBXSDK_NEW_API in your project and fix compilation errors as instructed in fbxsdk_compatibility.h.
And the link error
/usr/bin/ld: cannot find -luuid
Any tips would be appreciated.
Pre-requisites
sudo apt-get install uuid-dev
sudo apt-get install libxmu-dev libxi-dev
sudo apt-get install libx11-dev
Makefile modifications required
Change gcc4 to gcc
CC = gcc
LD = gcc
add -lX11 to LIBS
LIBS = -lfbxsdk-$(LIBFBXVERSION)$(STATIC) -lm -lrt -luuid -lc -lstdc++ -lpthread -ldl -lglut_gcc34-amd64 -lGLEW_amd64 -lGLU -lGL -lXmu -lX11
add -DFBXSDK_NEW_API to C_FLAGS and CXX_FLAGS
CFLAGS = -m64 -DFBXSDK_NEW_API
CXXFLAGS = -m64 -DFBXSDK_NEW_API

mod_wsgi | linux installation error

I'm getting the following error when I try to install mod_wsgi
./configure
checking for apxs2... no
checking for apxs... /usr/sbin/apxs
checking Apache version... 2.2.3
configure: creating ./config.status
config.status: creating Makefile
make
/usr/sbin/apxs -c -I/usr/local/include/python2.6 -DNDEBUG mod_wsgi.c -L/usr/local/lib -L/usr/local/lib/python2.6/config -lpython2.6 -lpthread -ldl -lutil -lm
/apr-1/build/libtool --silent --mode=compile gcc -prefer-pic -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables -fno-strict-aliasing -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -pthread -I/usr/include/httpd -I/usr/include/apr-1 -I/usr/include/apr-1 -I/usr/local/include/python2.6 -DNDEBUG -c -o mod_wsgi.lo mod_wsgi.c && touch mod_wsgi.slo
sh: /apr-1/build/libtool: No such file or directory
apxs:Error: Command failed with rc=8323072
.
make: *** [mod_wsgi.la] Error 1
libtool is installed on my system..
mod_wsgi 3.2
****Apache 2.2****
****Python 2.6****
You're possibly missing apr development files. Depending on your distribution check your package manager for 'apr'. On ubuntu it might be 'libaprutil1-dev'.

Resources