LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-20-2009, 10:48 AM   #1
defrak
LQ Newbie
 
Registered: Jun 2009
Posts: 7

Rep: Reputation: 0
A series of errors while running make- installation of gnuplot


I'm trying to install gnuplot 4.2.5 on centOS. I extract the tar.gz file, run the command ./configure and then run make. This is when i get the following errors on the screen towards the end:

/usr/bin/ld: skipping incompatible /usr/lib/libfontconfig.so when searching for -lfontconfig
/usr/bin/ld: cannot find -lfontconfig
collect2: ld returned 1 exit status
make[3]: *** [gnuplot] Error 1
make[3]: Leaving directory `/home/powder/software/gnuplot-4.2.5/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/powder/software/gnuplot-4.2.5/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/powder/software/gnuplot-4.2.5'
make: *** [all] Error 2

What can I do to fix this ??
 
Old 09-21-2009, 09:11 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
# yum install gnuplot
or
# yum install gnuplot-emacs
... provides version 4.0.0

If you want the latest version :
http://sourceforge.net/projects/gnup...ar.gz/download
> > gnuplot-4.2.6.tar.gz
( The documentation for 4.2.5 says .. problems ..
.. use later version ..)

'gnuplot-4.2.6' : No errors on CentOS 5.x , x86. ( 32 bit )

What have you got ?? x86_64 ( 64 bit ) ? ?
.....
In fact, you have one error only :
" incompatible /usr/lib/libfontconfig.so "
.....
 
Old 09-21-2009, 09:58 AM   #3
defrak
LQ Newbie
 
Registered: Jun 2009
Posts: 7

Original Poster
Rep: Reputation: 0
Yes. I have a x86_64. I shall try installing 4.2.6 and let you know if I get the same problem.

Thank you very much
 
Old 09-21-2009, 10:05 AM   #4
defrak
LQ Newbie
 
Registered: Jun 2009
Posts: 7

Original Poster
Rep: Reputation: 0
I get the same error when installing gnuplot 4.2.6. Is it because I have a 64bit kernel?
 
Old 09-21-2009, 01:00 PM   #5
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
No, the kernel is not involved when compiling this application.
Some 64-bit libraries are. Though, I don't see any arch issues in
the config files. May be in the source code ?
.....

And here ... another possible solution ...
( But still, is tested on 32 bit only.)
http://download.fedora.redhat.com/pu...1.fc12.src.rpm
> gnuplot-4.2.6-1.fc12.src.rpm = source code + a patch,
used to build " gnuplot-4.2.6-1el5.noarch.rpm " etc.
with the command : # rpmbuild -bb gnuplot-el5.spec
( The 'noarch' should be x86 ( or x86_64 ) : is a harmless bug.)
The edited spec file is attached as gnuplot-el5.spec.txt

Please install ( unpack ) gnuplot-4.2.6-1.fc12.src.rpm
to /usr/src/redhat/SOURCES/ , with the command
# rpm -Uvh gnuplot-4.2.6-1.fc12.src.rpm
May not work ... if so, please ...
1) cd /usr/src/redhat/SOURCES/
2) # rpm2cpio gnuplot-4.2.6-1.fc12.src.rpm | cpio -idmv
.....
Attached Files
File Type: txt gnuplot-el5.spec.txt (17.0 KB, 11 views)

Last edited by knudfl; 09-21-2009 at 02:37 PM.
 
Old 09-22-2009, 10:42 AM   #6
defrak
LQ Newbie
 
Registered: Jun 2009
Posts: 7

Original Poster
Rep: Reputation: 0
I got it fixed! My friend suggested the following:
yum install fontconfig fontconfig-devel

Then I tried installing and it worked.

Thanks for your help, anyways.
 
  


Reply

Tags
gnuplot



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LFS 6.3 .... 6.12.1. Installation of GCC make errors Axo Linux From Scratch 4 03-29-2008 02:18 AM
About 30 different errors when running make in the src for Roadmap 1.1.0 lumix Linux - Software 1 02-29-2008 05:10 PM
errors running make no.4 Linux - Newbie 7 09-20-2006 03:58 PM
GLIBC_2.3.4 not defined in file libc.so.6 when running gnuplot azariaya Linux - Software 7 01-05-2005 04:57 PM
Errors running 'make install' (wireless network) fatrandy13 Linux - Wireless Networking 4 06-14-2004 11:00 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:01 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration