Solved

gmake

Posted on 2014-02-14
7
255 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
  • 3
  • 2
  • 2
7 Comments
 

Author Comment

by:ittechlab
Comment Utility
[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
Comment Utility
Did try to create a link???

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

Open in new window

0
 

Author Comment

by:ittechlab
Comment Utility
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
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 

Author Comment

by:ittechlab
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
Or tell ld to do a 32-bit load
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

This document is written for Red Hat Enterprise Linux AS release 4 and ORACLE 10g.  Earlier releases can be installed using this document as well however there are some additional steps for packages to be installed see Metalink. Disclaimer: I hav…
Little introduction about CP: CP is a command on linux that use to copy files and folder from one location to another location. Example usage of CP as follow: cp /myfoder /pathto/destination/folder/ cp abc.tar.gz /pathto/destination/folder/ab…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

743 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now