Stop data retention! Click here & act! Are you a webmaster and want to participate? Here you can find all necessary material for your website - Willst du auch an der Aktion teilnehmen? Hier findest du alle relevanten Infos und Materialien:
Chris Karakas Online Forum Index Karakas Online
 FAQFAQ   Forum SearchForum Search   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
Binary and source RPM packages for the GNU MP (GMP) library



 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.
   Chris Karakas Online Forum Index -> Linux Forum RSS Feed of this Forum
Share this page: These icons link to social bookmarking sites where readers can share and discover new web pages.Digg  del.icio.us  tc.eserver.org  Blinklist  Furl  Reddit  Blogmarks  Magnolia  Sphere  Yahoo!  Google  Windows Live  Technorati  Blue Dot  Simpy  Newsvine  Stumble Upon  co.mments.com  Blinkbits  BlogMemes  Connotea  View previous topic :: View next topic  
Author Message
chris
Dark Lord of the Sith


Joined: 10 May 2003
Posts: 6267
Location: Outer Space

PostPosted: Tue Apr 05, 2005 5:55 pm    Post subject: Binary and source RPM packages for the GNU MP (GMP) library
Reply with quote

GMP is a free library for arbitrary precision arithmetic, operating on signed integers, rational numbers, and floating point numbers. There is no practical limit to the precision except the ones implied by the available memory in the machine GMP runs on. GMP has a rich set of functions, and the functions have a regular interface.

For the GNU MP Library, I have created binary and source RPM packages for SuSE 9.0:



Use the command

Code:

rpm -Uhv xxx.rpm


to install the binary RPMs. I used the build package of SuSE to compile my own source RPMs from source, as described for example in Compiling SuSE Source Packages. Note that up to and including version 9.0, SuSE uses the usedforbuild string on a comment line of the spec file to list all needed files for a successful compilation of the package.

The packages are build for SuSE 9.0. To rebuild a package for your own version of (SuSE) Linux, use the source RPMs and the build and/or rpmbuild commands, as described in How to compile an older version for a newer system in RPM.

Arrow These RPMs contain the newest GMP version 4.1.4. Non even the current SuSE 9.2 distribution has such a new version. However, this new version is strongly recommended, as this warning from the GMP page shows:
Quote:
Open quoteWe have discovered two serious bugs in mpf_sub of the previous GMP release, 4.1.3. These bugs cause mpf_sub to give numerically incorrect results. One of the bugs have been around since the initial release of the mpf functions in 1996. Please upgrade to GMP 4.1.4 if you're using the GMP floating-point functions. Close quote

_________________
Regards

Chris Karakas
www.karakas-online.de
Back to top
View user's profile Send private message Send e-mail Visit poster's website
djork
Private
Private


Joined: 18 Dec 2005
Posts: 2

PostPosted: Sun Dec 18, 2005 7:17 am    Post subject:
Reply with quote

Hey Chris,

This doesnt have much to do with your post, but I thought you may be able to answer a question for me.

I'm running Gentoo at home and have GMP 4.1.4 installed and working properly. I also subscribe to a hosting service that I would like to run some some integer arithmatic scripts on (over the web).

I'll compile and run some test applications on my Gentoo box just fine. When I move the executable to my host and try to run it reports:
Quote:
Open quoteerror while loading shared libraries: libgmpxx.xo.3: cannot open shared object file: No such file or directoryClose quote


I suppose this is more of a C/C++ question than anything. Is there a compile option that will allow me to include all of the information needed for the script to be self sufficiantly. I mean where my executable will run when it's away from the build environment. I'm using GCC.

Thanks in advance for any help.
Back to top
View user's profile Send private message
chris
Dark Lord of the Sith


Joined: 10 May 2003
Posts: 6267
Location: Outer Space

PostPosted: Sat Dec 31, 2005 3:21 pm    Post subject:
Reply with quote

You must tell gcc to use static libraries, instead of shared ones. Do a "man gcc" and search for "static". I guess you need the "-static" option.
_________________
Regards

Chris Karakas
www.karakas-online.de
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Share this page: These icons link to social bookmarking sites where readers can share and discover new web pages.Digg  del.icio.us  tc.eserver.org  Blinklist  Furl  Reddit  Blogmarks  Magnolia  Sphere  Yahoo!  Google  Windows Live  Technorati  Blue Dot  Simpy  Newsvine  Stumble Upon  co.mments.com  Blinkbits  BlogMemes  Connotea 
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.
   Chris Karakas Online Forum Index -> Linux Forum
Page 1 of 1
This page contains valid HTML 4.01 Transitional - click here to check it!
This page contains a valid CSS - click here to check it!

 

Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group