LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 01-11-2014, 03:04 PM   #1
nazatul
LQ Newbie
 
Registered: Jan 2014
Posts: 7

Rep: Reputation: Disabled
need help for running pbc library


hi, i am using pbc library in my fedora 17 64 bit os. i have installed gmp and pbc libraries. as the link describes "http://crypto.stanford.edu/pbc/howto.html" i have run the foo.c,it works fine but when i try to run paterson.c as or other examples in pbc/example directory i got these errors "./paterson: error while loading shared libraries: libpbc.so.1: cannot open shared object file: No such file or directory". but the compilation works fine. plz help me what is happening.thanks in advance.
 
Old 01-11-2014, 03:46 PM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,634

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by nazatul View Post
hi, i am using pbc library in my fedora 17 64 bit os. i have installed gmp and pbc libraries. as the link describes "http://crypto.stanford.edu/pbc/howto.html" i have run the foo.c,it works fine but when i try to run paterson.c as or other examples in pbc/example directory i got these errors "./paterson: error while loading shared libraries: libpbc.so.1: cannot open shared object file: No such file or directory". but the compilation works fine. plz help me what is happening.thanks in advance.
You mean the GMP libraries that you said you could NOT install?
http://www.linuxquestions.org/questi...os-4175490893/

Again, Fedora 17 is old, unsupported, and end-of-life...you really should update to FC20. That said, your error message is VERY clear...you do not have the PBC libraries installed, since the message tells you that they aren't. You need PBC, and the PBC development libraries.

And again, you need to spell out your words, please.
 
Old 01-11-2014, 11:12 PM   #3
nazatul
LQ Newbie
 
Registered: Jan 2014
Posts: 7

Original Poster
Rep: Reputation: Disabled
how do i check gmp is installed correctly? similarly for pbc? actually i have already installed these two libraries from source using these instructions ./configure, make, make check and make install.

Last edited by nazatul; 01-11-2014 at 11:17 PM.
 
Old 01-12-2014, 09:48 AM   #4
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,634

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by nazatul View Post
how do i check gmp is installed correctly? similarly for pbc? actually i have already installed these two libraries from source using these instructions ./configure, make, make check and make install.
You read the installation instructions. You STILL haven't told us where you got those libraries, what you did to install them, etc. All you posted in your other thread was that you "got the problem resolved", but don't tell anyone HOW you resolved it.

Again, you are THREE VERSIONS behind in Fedora...update. And again, you need to install the GMP DEVELOPMENT libraries, not just the GMP software. Since you don't give any details about what you've done, where you got things, what you're doing, etc., there's not much we can tell you.
 
Old 01-13-2014, 02:23 AM   #5
nazatul
LQ Newbie
 
Registered: Jan 2014
Posts: 7

Original Poster
Rep: Reputation: Disabled
i'm sorry for not giving you enough information. actually i got the gmp library from "https://gmplib.org/" and pbc library from "http://crypto.stanford.edu/pbc/download.html". By using the following instruction i solved my problem....
1. install gmp development tools first.(yum groupinstall "Development Tools")
2. install gmp as follows..
$ ./configure--prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-bootstrap --enable-shared --enable-threads=posix --enable-checking=release --disable-build-with-cxx --disable-build-poststage1-with-cxx --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-linker-build-id --with-linker-hash-style=gnu --enable-languages=c,c++,objc,obj-c++,java,fortran,ada,go,lto --enable-plugin --enable-initfini-array --enable-java-awt=gtk --disable-dssi --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-1.5.0.0/jre --enable-libgcj-multifile --enable-java-maintainer-mode --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --disable-libjava-multilib --with-ppl --with-cloog --with-tune=generic --with-arch_32=i686 --build=x86_64-redhat-linux
$ make
$ make check
$make install

3. then install pbc library( for installation follow the instruction of the manual ("http://crypto.stanford.edu/pbc/manual/")

the error was resolved by changing the header of the paterson.c as #include<pbc/pbc.h> and #include<pbc/pbc_test.h>
compile as $gcc -o paterson paterson.c -lgmp -lpbc and run as $./paterson ../param/a.param

Last edited by nazatul; 01-13-2014 at 02:28 AM.
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Library missing error while running snmpd in lpc3250 board biyabani Linux - Newbie 2 05-28-2013 05:31 AM
Installing and running LibCurl Library C Programs (UBUNTO 14.04) conrad143 LinuxQuestions.org Member Intro 3 11-06-2011 03:32 PM
How to find the memory usage of shared library running in Linux? sathyadurai Linux - Newbie 3 12-01-2010 02:15 AM
When running programs: Locale not supported by C library miceagol Linux - General 2 06-02-2006 04:46 PM
display problem while running C program using openGL library narendramandiwalmca Linux - Software 3 06-15-2005 03:49 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 12:08 AM.

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