[SOLVED] /usr/bin/ld: cannot find -lgraph in compilation of libgraph
Linux - SoftwareThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
/usr/bin/ld: cannot find -lgraph in compilation of libgraph
hi to all, I've centos 7.5 in VM and I am trying to install libgraph-1.0.2. but after successful configuraiton ( ./configure ) and then trying to "make" i found following error :-
hi to all, I've centos 7.5 in VM and I am trying to install libgraph-1.0.2. but after successful configuraiton ( ./configure ) and then trying to "make" i found following error :-
Code:
/usr/bin/ld: cannot find -lgraph
hwo to recover this error.
Did you read and follow the instructions in both the README and INSTALL files that are included in the file you downloaded?? You've had numerous threads where you've either not responded at all, haven't followed the advice given, or have shown little to no effort of your own first. Again, read the "Question Guidelines".
yes i've read all in Install and readme files, but found nothing regarding this error.
...because you didn't follow the instructions in those files. There are a specific list of things you need to install first. If you read and follow the instructions, you won't get errors.
Distribution: PCLinuxOS2020 CentOS6.10 CentOS7.7 + 50+ other Linux OS, for test only.
Posts: 17,397
Rep:
No issues here, CentOS 7 :
Code:
# yum install SDL-devel.x86_64 SDL_image-devel.x86_64 guile-devel.x86_64
// The SDL_image packages are in the EPEL repo
$ tar xvf libgraph-1.0.2.tar.gz
$ cd libgraph-1.0.2/
$ ./configure --prefix=/usr --libdir=/usr/lib64 && make
# make install
# yum install SDL-devel.x86_64 SDL_image-devel.x86_64 guile-devel.x86_64
// The SDL_image packages are in the EPEL repo
$ tar xvf libgraph-1.0.2.tar.gz
$ cd libgraph-1.0.2/
$ ./configure --prefix=/usr --libdir=/usr/lib64 && make
# make install
Yep...those SDL packages are explicitly mentioned in the README, which the OP said that they read.
Code:
**** FROM THE TOP PART OF THE README FILE ****
What do I need ?
----------------
You need to have the following installed :
SDL-x.x.x.rpm -- the main SDL library
SDL-devel-x.x.x.rpm -- the developer package
SDL_image-x.x.x.rpm -- image library for fonts
SDL_image-devel-x.x.x.rpm -- image library developer
Without the SDL packages, you do get the aforementioned error.
thanks a lot, finally i installed libgraph on my centos7.5.
i install above rpm and then reinstalling libgraph, it happened
i ran this program i in codeblocks :-
problem of installing of libgraph is solved but now again one problem is here :-
when i run program in codeblocks ide it runs fine but when i run its executable file in terminal it shows following error :
Code:
[rahul@centos7client Debug]$ ./graphincpp
The font has not been loaded!
thanks a lot, finally i installed libgraph on my centos7.5. i install above rpm and then reinstalling libgraph, it happened i ran this program i in codeblocks :-
and i linked "graph", in search "/usr/local/include" and in linker "/usr/local/lib" and it ran fine.
...and....
Quote:
Originally Posted by rahulvishwakarma
problem of installing of libgraph is solved but now again one problem is here :- when i run program in codeblocks ide it runs fine but when i run its executable file in terminal it shows following error :
Code:
[rahul@centos7client Debug]$ ./graphincpp
The font has not been loaded!
Right; did you think about what you installed and how???
AGAIN: you need to **READ AND FOLLOW** the instructions on installing libgraph, and remove the package you installed. knudfl followed the instructions and generated a package....which was based on the configure program for HIS SYSTEM. The paths/fonts/whatever you're using on YOUR system are different, and because you didn't install the correct SDL packages/libraries, and configure/link against them, you have an error. Since you've been using Codeblocks for at least five years now, you know that it does linking and other things to paths for you, based on how you configure it.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.