Solved

gmake

Posted on 2014-02-14
7
263 Views
Last Modified: 2014-03-15
/usr/bin/ld: skipping incompatible /usr/local/perl-5.8.9/lib/5.8.9/i386-thread-multi/CORE/libperl.so when searching for -lperl
/usr/bin/ld: cannot find -lperl
collect2: ld returned 1 exit status
0
Comment
Question by:ittechlab
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
  • 2
7 Comments
 

Author Comment

by:ittechlab
ID: 39859731
[root@rhel5 postgresql-8.2.10]# ld -lperl --verbose


==================================================
attempt to open /usr/x86_64-redhat-linux/lib64/libperl.so failed
attempt to open /usr/x86_64-redhat-linux/lib64/libperl.a failed
attempt to open /usr/local/lib64/libperl.so failed
attempt to open /usr/local/lib64/libperl.a failed
attempt to open /lib64/libperl.so failed
attempt to open /lib64/libperl.a failed
attempt to open /usr/lib64/libperl.so failed
attempt to open /usr/lib64/libperl.a failed
attempt to open /usr/x86_64-redhat-linux/lib/libperl.so failed
attempt to open /usr/x86_64-redhat-linux/lib/libperl.a failed
attempt to open /usr/lib64/libperl.so failed
attempt to open /usr/lib64/libperl.a failed
attempt to open /usr/local/lib/libperl.so failed
attempt to open /usr/local/lib/libperl.a failed
attempt to open /lib/libperl.so failed
attempt to open /lib/libperl.a failed
attempt to open /usr/lib/libperl.so failed
attempt to open /usr/lib/libperl.a failed
ld: cannot find -lperl
0
 
LVL 14

Accepted Solution

by:
comfortjeanius earned 333 total points
ID: 39859828
Did try to create a link???

sudo ln -s libperl.so.<version number> libperl.so

Open in new window

0
 

Author Comment

by:ittechlab
ID: 39859870
I am trying to set the following and trying to execute the following command. what happens is i am loosing the shell. How do i fix this in the scripting.

./configure --prefix=/pgarc/psql --with-perl

##setting up environment based on 32bit
envset(){
        export PERL5LIB=/usr/lib/perl5
        export CC="gcc -m32"
        export LD="ld -melf_i386"
        export CFLAGS="-m32"
        export LDFLAGS="-m32"
        setarch i386
}
0
Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

 

Author Comment

by:ittechlab
ID: 39859942
sudo -u postgres -H sh -c "cd /usr/local/src/postgresql-8.2.10;export PERL5LIB=/usr/lib/perl5;export CC="gcc -m32";export LD="ld -melf_i386";export CFLAGS="-m32";export LDFLAGS="-m32";setarch i386;./configure --prefix=/pgarc/psql --with-perl"

when i run this in the script.  its ending up with the following output instead of executing ./configure

+ sudo -u postgres -H sh -c 'cd /usr/local/src/postgresql-8.2.10;export PERL5LIB=/usr/lib/perl5;export CC=gcc' '-m32;export LD=ld' '-melf_i386;export CFLAGS=-m32;export LDFLAGS=-m32;setarch i386;./configure --prefix=/pgarc/psql --with-perl'
0
 
LVL 14

Assisted Solution

by:comfortjeanius
comfortjeanius earned 333 total points
ID: 39859989
What are you trying to configure and what Linux distribution do you have?
0
 
LVL 34

Assisted Solution

by:Duncan Roe
Duncan Roe earned 167 total points
ID: 39874984
The most likely cause of the original error message is that /usr/local/perl-5.8.9/lib/5.8.9/i386-thread-multi/CORE/libperl.so is a 32-bit library but you are trying to build a 64-bit application. You need to install the 64-bit perl library
0
 
LVL 34

Expert Comment

by:Duncan Roe
ID: 39874996
Or tell ld to do a 32-bit load
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

1. Introduction As many people are interested in Linux but not as many are interested or knowledgeable (enough) to install Linux on their system, here is a safe way to try out Linux on your existing (Windows) system. The idea is that you insta…
It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

710 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question