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 |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
01-11-2014, 03:04 PM
|
#1
|
LQ Newbie
Registered: Jan 2014
Posts: 7
Rep: 
|
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.
|
|
|
01-11-2014, 03:46 PM
|
#2
|
LQ Guru
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 27,609
|
Quote:
Originally Posted by nazatul
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.
|
|
|
01-11-2014, 11:12 PM
|
#3
|
LQ Newbie
Registered: Jan 2014
Posts: 7
Original Poster
Rep: 
|
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.
|
|
|
01-12-2014, 09:48 AM
|
#4
|
LQ Guru
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 27,609
|
Quote:
Originally Posted by nazatul
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.
|
|
|
01-13-2014, 02:23 AM
|
#5
|
LQ Newbie
Registered: Jan 2014
Posts: 7
Original Poster
Rep: 
|
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.
|
|
|
All times are GMT -5. The time now is 03:50 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|