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.
Related
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.
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
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... :)
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 10 years ago.
Improve this question
I need to install libmemcache onto a CentOS box. I don't have root privileges, so preferably everything would go somewhere inside my home directory.
I've tried downloading libmemcached-1.0.12.tar.gz and building it with ./configure --prefix=/home/charrison, make install, but this inscrutably failed. Something clued me to install libevent, which helped somewhat, but ultimately the libmemcached make is now failing as follows:
In file included from ./libmemcached/common.h:72,
from ./libmemcached/csl/common.h:40,
from libmemcached/csl/context.cc:38:
./libmemcached-1.0/memcached.h:46:27: error: tr1/cinttypes: No such file or directory
And, even if I resolved that, who knows how many more prerequisites exist?
Then it occurred to me "Hey, isn't this what 'package managers' are for? To know about and install prerequisites?" I discovered that RPM is the CentOS package manager, but I drowned in the man page. I'm not even sure whether it is capable of downloading packages or knowing about dependencies.
The only "package manager" I have any experience with is cpan, which is pretty powerful and simple.
So I'd really like to know
how to install libmemcached in CentOS privately, and if possible,
what a package manager does and does not do
Here is my answer to the two questions. Hope it helps you.
how to install libmemcached in CentOS privately, and if possible,
(Step 1) download libmemcached RPM package from CentOS mirror site such as ftp://ftp.riken.jp/Linux/centos/<centos version>/os/<your arch>/Packages/.
(Step 2) extract the package in a current directory by using rpm2cpio command.
e.g., $ mkdir foo; cd foo; rpm2cpio ../libmemcached-*.rpm | cpio -di
what a package manager does and does not do
rpm command allows you to find out what packages are installed(*1).
Also, you can confirm the dependencies among multiple packages(*2), what package the specified file belongs to(*3) and what files the specified package contains(*4).
(*1) e.g., $ rpm -qa
(*2) e.g., $ rpm -q --requires foo
(*3) e.g., $ rpm -qf /etc/foo.conf
(*4) e.g., $ rpm -ql foo
I think that Maximum RPM(http://www.rpm.org/max-rpm/) is very useful site for you.
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 10 years ago.
Improve this question
I just try install libperl-dev with apt on Ubuntu, but I have following error:
user#comp-2:~$ sudo apt-get install libperl-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
libperl-dev : Depends: perl (= 5.14.2-6ubuntu2) but 5.14.2-6ubuntu2.1 is to be installed
Depends: libperl5.14 (= 5.14.2-6ubuntu2) but 5.14.2-6ubuntu2.1 is to be installed
E: Unable to correct problems, you have held broken packages.
I tried to google the problem but didn't found something clear.
Can some one explain me what it's mean: "Depends: libperl5.14 (= 5.14.2-6ubuntu2) but 5.14.2-6ubuntu2.1 is to be installed", and how to solve it?
Thank you for ahead.
Basically the error message tells you all three packages (libperl-dev, perl and libperl5.14) need to have exactly the same version (either 5.14.2-6ubuntu2 or 5.14.2-6ubuntu2.1), but you are trying to mix the two. I can't tell you why is that (maybe you are trying to mix packages from different distributions, something like debian testing/unstable), but if you used aptitude, you could examine the situation in an interactive dependency solver (maybe it would even find an acceptable solution for you automatically).
So, use aptitude and examine the versions of the packages, both those you are trying to install and those you already have.
No direct answer to your question but a way to avoid it occurring:
You should not fiddle around with your systems Perl to much. Because a lot of system-packages depend on the systems Perl. If you screw this up, your system might run into troubles.
If you want to be flexible with Perl installations always use Perlbrew! Go to this site, it is very easy: http://perlbrew.pl/ Perlbrew manages different Perls, and all is safely in your $home. (Perlbrew is also on CPAN or available as .deb package, but use the website above, it is saver)
If you then add this line to your .bashrc
# Perl is always from perlbrew!
source ~/perl5/perlbrew/etc/bashrc
You can use the perlbrew commands on your terminal to easily switch between Perl installations.
Maybe this helps you?
Regards