mersenneforum.org  

Go Back   mersenneforum.org > Factoring Projects > GMP-ECM

Reply
 
Thread Tools
Old 2010-12-30, 02:53   #1
jasong
 
jasong's Avatar
 
"Jason Goatcher"
Mar 2005

3×7×167 Posts
Default Fedora ecm installed, but where?

Those who have ever discussed my Linux habits with me have probably seen the term perma-noob 1 or more times, and here's yet another reason why I'm a perma-noob.

I used the Fedora(13? not 100% certain) repository to install ecm, and now I have no clue whatsoever where on my computer it resides. I tried the whereis command and simply got
Quote:
ecm:
as a response. I know that there's a better command to use, but even if you don't know that command, maybe one of you could tell me where Fedora put the program?

Thanks much.

Last fiddled with by jasong on 2010-12-30 at 02:54 Reason: When I say Fedora ecm, I just mean I used the Fedora OS's repository to install the program.
jasong is offline   Reply With Quote
Old 2010-12-30, 02:59   #2
mdettweiler
A Sunny Moo
 
mdettweiler's Avatar
 
Aug 2007
USA (GMT-5)

3·2,083 Posts
Default

If the way it works on Ubuntu is any indication, it's probably in /usr/bin, /usr/lib or some other place that's in your path; that is, you can just run it as "ecm" from anywhere.
mdettweiler is offline   Reply With Quote
Old 2010-12-30, 03:15   #3
jasonp
Tribal Bullet
 
jasonp's Avatar
 
Oct 2004

67218 Posts
Default

If the ecm binary is in your path, then 'which ecm' will provide a path to it. If not, not.
jasonp is offline   Reply With Quote
Old 2010-12-30, 03:29   #4
jasong
 
jasong's Avatar
 
"Jason Goatcher"
Mar 2005

3×7×167 Posts
Default

It doesn't run when I type "ecm" and "which ecm" lists where it looks, but says it hasn't found it.

Is it possible the repository is broken and it only partially performed the actions it was supposed to?
jasong is offline   Reply With Quote
Old 2010-12-30, 03:34   #5
jasong
 
jasong's Avatar
 
"Jason Goatcher"
Mar 2005

3·7·167 Posts
Default

I'm going to go ask at the Fedora website, stay tuned. :)
jasong is offline   Reply With Quote
Old 2010-12-30, 04:57   #6
Xyzzy
 
Xyzzy's Avatar
 
"Mike"
Aug 2002

177448 Posts
Default

Install Debian.

Then, as root:
Code:
aptitude install gmp-ecm
Then, as a normal user:
Code:
ecm -h
Xyzzy is offline   Reply With Quote
Old 2010-12-30, 07:03   #7
jasong
 
jasong's Avatar
 
"Jason Goatcher"
Mar 2005

3·7·167 Posts
Default

Quote:
Originally Posted by Xyzzy View Post
Install Debian.

Then, as root:
Code:
aptitude install gmp-ecm
Then, as a normal user:
Code:
ecm -h
While I'm sure that would work as well, the awesome leigh123linux(or maybe it was leighlinux123) informed me the command path was /usr/bin/gmp-ecm .
jasong is offline   Reply With Quote
Old 2010-12-30, 11:09   #8
xilman
Bamboozled!
 
xilman's Avatar
 
"π’‰Ίπ’ŒŒπ’‡·π’†·π’€­"
May 2003
Down not across

2×72×109 Posts
Default

Quote:
Originally Posted by jasong View Post
While I'm sure that would work as well, the awesome leigh123linux(or maybe it was leighlinux123) informed me the command path was /usr/bin/gmp-ecm .
General advice: locate(1) is your friend.

On my Fedora 14 machine, locate ecm produces 5008 lines of output (!) because I have rather a lot of ECM development files, ECMNet client/server installations, backups of the foregoing, and quite a lot of other ECM-related crud as well. However, the ecm binary is very probably to be found in my ${PATH} if it is to be useful, so let's filter down the results:

Code:
[pcl@anubis ~]$ echo ${PATH}
/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/usr/local/cuda/bin:/home/pcl/bin
[pcl@anubis ~]$
Note that all of those contain the word 'bin' and so I can guide locate(1) rather more precisely to where it may find material of most interest to me:
Code:
[pcl@anubis ~]$ locate '*bin*ecm*'
/VirtualBoxen/Athlon/home/pcl/bin/ecm
/VirtualBoxen/Athlon/usr/local/bin/ecm
/VirtualBoxen/Athlon/usr/local/bin/ecm-6.0.1
/VirtualBoxen/Imhotep/bin/ecm
/VirtualBoxen/Kyala/pcl/bin/ecm
/VirtualBoxen/Malibu/home/pcl/bin/ecm
/usr/bin/gmp-ecm
/usr/local/bin/ecm
[pcl@anubis ~]$
That's more like it. In particular, the last two lines turn up two useful binaries. The lines beginning /VirtualBoxen are backups of old machines which are no longer running but for which I keep their file systems hanging around in case their contents still needed.


Paul
xilman is offline   Reply With Quote
Old 2011-01-03, 03:57   #9
EdH
 
EdH's Avatar
 
"Ed Hall"
Dec 2009
Adirondack Mtns

2·3·619 Posts
Default

Sorry I didn't notice this until now. My experience with FC13 and prior is thus:

Fedora uses gmp-ecm for its command instead of just ecm, if installed via the repositories. Try "gmp-ecm --help"

To see where it resides, use "System>Administration>Add/Remove Software"

Enter "gmp-ecm" in the search box and choose "Find"

When gmp-ecm shows up, which might be a little while, highlight it and go to "Selection>Get file list"

A list of all the associated files and locations will be displayed. Mine shows this:
Code:
/usr/bin/gmp-ecm
/usr/lib/libecm.so.0
/usr/lib/libecm.so.0.0.0
/usr/share/doc/gmp-ecm-6.2.3
/usr/share/doc/gmp-ecm-6.2.3/AUTHORS
/usr/share/doc/gmp-ecm-6.2.3/COPYING
/usr/share/doc/gmp-ecm-6.2.3/COPYING.LIB
/usr/share/doc/gmp-ecm-6.2.3/ChangeLog
/usr/share/doc/gmp-ecm-6.2.3/NEWS
/usr/share/doc/gmp-ecm-6.2.3/README
/usr/share/doc/gmp-ecm-6.2.3/TODO
/usr/share/man/man1/gmp-ecm.1.gz

Last fiddled with by EdH on 2011-01-03 at 04:00
EdH is offline   Reply With Quote
Reply

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
Trouble With CUDA 6.5 on Fedora 20 (5.5 worked in F17/19) EdH GPU Computing 5 2014-10-13 19:16
Running mprime on fedora jimmychauck Information & Answers 1 2010-06-16 04:42
ECM is installed- what now? Zeta-Flux GMP-ECM 17 2008-06-10 12:49
mprime crash on Fedora Core 1 db597 Software 0 2004-10-11 09:24
Fedora tha Software 2 2004-01-13 23:12

All times are UTC. The time now is 11:15.

Wed May 12 11:15:35 UTC 2021 up 34 days, 5:56, 0 users, load averages: 1.06, 1.37, 1.54

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.

This forum has received and complied with 0 (zero) government requests for information.

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation.
A copy of the license is included in the FAQ.