Not able to install DBD::pg perl module [closed] - perl

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 years ago.
Improve this question
I am trying to install DBD::pg module on my linux ubuntu 12.04 machine but not able to do so. I am using download method as I am facing connectivity issues while installing it from CPAN terminal. when I run perl Makefile.PL it gives me following.
Configuring DBD::Pg 3.4.2
Path to pg_config? /vol01/local/rina/cac/softwares/pgsql
Enter a valid PostgreSQL postgres major version number 8
Enter a valid PostgreSQL postgres minor version number 8
Enter a valid PostgreSQL postgres patch version number 8
Enter a valid PostgreSQL postgres bin dir /vol01/local/rina/cac/softwares/bin
Enter a valid PostgreSQL postgres include dir /vol01/local/rina/cac/softwares/pg_inc
I have no idea what to put in the above questions still I created few directories manually and provided as above.
then it gives me this
PostgreSQL version: 80898 (default port: 5432)
POSTGRES_HOME: (not set)
POSTPGRES_INCLUDE: /vol01/local/rina/cac/softwares/pg_inc
POSTGRES_LIB: /usr/local/pgsql/lib -lssl -lcrypto
OS: linux
Multiple copies of Driver.xst found in: /usr/local/lib64/perl5/auto/DBI/ /usr/lib64/perl5/auto/DBI/ at Makefile.PL line 182
Warning: prerequisite Time::HiRes 0 not found.
Multiple copies of Driver.xst found in: /usr/local/lib64/perl5/auto/DBI/ /usr/lib64/perl5/auto/DBI/ at Makefile.PL line 285
Using DBI 1.631 (for perl 5.010001 on x86_64-linux-thread-multi) installed in /usr/local/lib64/perl5/auto/DBI/
Writing Makefile for DBD::Pg
later when I run make it gives me below error multiple times
Pg.xs:301: error: ‘imp_dbh_t’ has no member named ‘sqlstate
How can I install this module successfully? I found few similar kind of questions but could not find the solution. Please help.

Solved in the comments by Geetika:
I did it on centOS machine...I ran "yum install postgresql-devel" and then installed the module successfully...thanks a lot for your time and help... :)

Related

-jailshell: d-linux-x86-64.so.2: bad ELF interpreter: No such file or directory [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 1 year ago.
Improve this question
I'm trying to install an executable but it gives me the error -jailshell: d-linux-x86-64.so.2: bad ELF interpreter: No such file or directory, I have already checked if I have the glib 32-bit version with the command rpm -qf /lib/ld-linux.so.2 and rpm -qa | grep glibc | grep i686 and it seems to be ok (it prints me glibc-2.17-324.el7_9.i686).
I'm trying to install an executable but it gives me the error
This executable is corrupt.
It is trying to use d-linux-x86-64.so.2 as an interpreter, and such a file doesn't exist (nor should it exist) on your machine.
Chances are this executable was transferred over FTP in ASCII mode, or corrupted in some other way.
I have already checked if I have the glib 32-bit version
That is irrelevant: the binary you are trying to build is a 64-bit binary.
Also, there is a difference between glib and glibc.

mytop on big sur stopped working after os update [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 1 year ago.
Improve this question
After updating to macos big sur 11.3 (20E232) I can no longer launch mytop from the terminal.
When launching mytop - which is installed via brew - I get this error:
> mytop
ListUtil.c: loadable library and perl binaries are mismatched (got handshake key 0xc500080, needed 0xc400080)
> which mytop
/usr/local/bin/mytop
> ls -la /usr/local/bin/mytop
lrwxr-xr-x 1 username admin 33 9 Dec 10:24 /usr/local/bin/mytop -> ../Cellar/mytop/1.9.1_8/bin/mytop
So far to attempt to fix I have run:
brew update
xcode-select --install (wait 5 hours)
brew upgrade
brew remove mytop; brew install mytop
Still haven't resolved it.
I imagine this would a number of binaries. Has anyone seen similar and/or have a fix ?
Solution : brew reinstall -s mytop
Details from github conversation
This was caused by Big Sur 11.3 switching the default perl to 5.30. It used to be 5.28, and that's the version that mytop expects to find at /usr/bin/perl. See Homebrew/brew#10127.
In the meantime, try brew reinstall -s mytop to rebuild mytop against the new version of system perl.

Where do I get an offline installer for PadWalker? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 3 years ago.
Improve this question
I'm using Eclipse with Perl (ActivePerl) on a PC without an Internet connection. It was quite tricky to add EPIC Perl into Eclipse, but this works fine.
Now I'd like to add the PadWalker debugger to my Perl installation - but I need an offline installer.
I found some information at:
http://perlmaven.com/padwalker
How do I install PadWalker using CPAN (cpan PadWalker) or PPM (ppm install PadWalker), but it is only specified for online installation.
Even the hint with the proxy system variable (incl. username + password) doesn't work, as there isn't any Internet connection on this PC.
So wherefrom can I get an offline installer for PadWalker? Or wherefrom can I download a ZIP archive to put it to the local repository that can be defined within the PPM (Perl package manager)?
Here's a quick version.
Go to any facility that has an Internet connection, and search CPAN for PadWalker.
The latest version is v2.2 and is documented here.
On the right of that page is a link to the latest gzipped release, currently PadWalker-2.2.tar.gz.
Copy that file to your target system.
You should download that file and follow the directions in perldoc perlmodinstall, which are essentially:
Unzip the compressed file
Unpack the tar contents
cd to the unpacked directory, and do
perl Makefile.pl
make test
And, if the tests were successful
make install

Upgrading Perl in Ubuntu [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 11 years ago.
Improve this question
Since May 14th the current version of Perl is 5.14. In Ubuntu repository the current version of Perl is 5.10 which is no longer supported. So Im trying to manually upgrading Perl.
What is the recommended way to upgrade perl 5.10 to perl 5.14 in Ubuntu?
I found the perlbrew tool, but it seems to install just in the users home.
Perlbrew docs says that you can change your $HOME dir to something else:
The directory ~/perl5/perlbrew will contain all install perl
executables, libraries, documentations, lib, site_libs. If you need to
install perlbrew, and the perls it brews, into somewhere else because,
say, your HOME has limited quota, you can do that by setting a
PERLBREW_ROOT environment variable before running the installer:
export PERLBREW_ROOT=/opt/perlbrew curl -L
http://xrl.us/perlbrewinstall | bash
download, configure, compile ....

Building OpenLDAP from sources and missing BerkelyDB [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 1 year ago.
Improve this question
I'm building OpenLDAP on a RHEL 5; I used instructions found at http://www.linux.com/archive/feature/113607.
All went well, until running './configure' for OpenLDAP - the following error was recorded:
*<earlier output snipped>*
checking for gethostbyaddr_r... yes
checking number of arguments of ctime_r... 2
checking number of arguments of gethostbyname_r... 6
checking number of arguments of gethostbyaddr_r... 8
checking db.h usability... yes
checking db.h presence... yes
checking for db.h... yes
checking for Berkeley DB major version in db.h... 5
checking for Berkeley DB minor version in db.h... 1
checking if Berkeley DB version supported by BDB/HDB backends... yes
**checking for Berkeley DB link (default)... no
configure: error: BDB/HDB: BerkeleyDB not available**
I have Googled like a maniac but have been unsuccessful to find a resolution - any tips on areas to explore?
Thanks
do yum install db4-devel
(or just install the prepackaged openldap, yum install openldap-servers openldap-clients
Seems you are using tarball installation, first you should install Berkeley DB. You can find it from oracle website at Oracle Berkeley DB Downloads. Compile and install it.
cd db-4.7.25.NC
. ./dist/configure
make
make install
cd /usr/local/BerkeleyDB.4.7/
This will install BerkeleyDB. Now you need to provide the location to successfully compile OpenLDAP.
export CPPFLAGS="-I/usr/local/BerkeleyDB.4.7/include"
export LDFLAGS="-L/usr/local/BerkeleyDB.4.7/lib -Wl,-R,/usr/local/BerkeleyDB.4.7/lib -Wl,--enable-new-dtags"
# Build OpenLDAP
...
If you don't set RPATH then you should add LD_LIBRARY_PATH to /etc/profile.
export LD_LIBRARY_PATH="/usr/local/BerkeleyDB.4.7/lib"
After this compile OpenLDAP, let me know if you face any issue.
For CentOS 7, do yum install libdb-devel. libdb4-devel did not work for me.
debian try:
aptitude install libdb5.1 libdb5.1-dev libdb5.1-dbg
apt-get install libdb-dev worked for me in Ubuntu Server.