mersenneforum.org  

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

Reply
 
Thread Tools
Old 2006-02-22, 11:07   #45
bearnol
 
bearnol's Avatar
 
Sep 2005

1778 Posts
Default

Isn't Linux cool!
J
bearnol is offline   Reply With Quote
Old 2006-02-22, 22:12   #46
jasong
 
jasong's Avatar
 
"Jason Goatcher"
Mar 2005

3×7×167 Posts
Default

One last thing:
Code:
dd if=/dev/zero of=/swapfile bs=1024 count=10485760
/sbin/mkswap /swapfile
/sbin/swapon /swapfile
cd /home/jasong/ecmnet3/ecmnet/client
./ecmclient
If I make the above a Linux batch file, will it automatically make things work properly? Also, I want it to run when the computer boots up and some of this stuff needs to be root(or SuperUser for the Fedora Project). How can I do that? Can I just enter "su" on the first line and my password on the second, and put it in a certain directory?

Edit: Sorry, I should've mentioned it's working absolutely perfectly.

Last fiddled with by jasong on 2006-02-22 at 22:23
jasong is offline   Reply With Quote
Old 2006-02-23, 18:42   #47
Xyzzy
 
Xyzzy's Avatar
 
"Mike"
Aug 2002

5×17×97 Posts
Default

To get the swapfile to start automatically, you need to edit /etc/fstab.

Here is mine. My swap file is /swap

Code:
mv@etch:~$ cat /etc/fstab
proc /proc proc defaults 0 0
/dev/hda1 / ext3 defaults,errors=remount-ro 0 1
/swap swap swap defaults 0 0
Xyzzy is offline   Reply With Quote
Old 2006-12-04, 20:05   #48
jasong
 
jasong's Avatar
 
"Jason Goatcher"
Mar 2005

1101101100112 Posts
Default

Quote:
Originally Posted by bearnol View Post
[Reposting this - approximately - after the mersenneforum crash... :-(]
Looking at your dirfile.txt, I note that you have combined the compilation directories for the ecm file and the ecmclient file. It's just possible this could be causing your subsequent Segmentation fault. The way I've always done it is to use separate directories for compiling the ecm and ecmclient files. If you're prepared to have another go from scratch (it should be easier/quicker this time given what you've already learnt :-) ) here's my system:
1) create a 'gmp-ecm' directory
2) create a 'ecmnet3' directory at the same level
3) put ecm-6.0.1.tar.gz in gmp-ecm directory
4) put ecmnet.zip in ecmnet3 directory
5) change to gmp-ecm directory and tar -zxvf ecm-6.0.1.tar.gz to uncompress
6) change to ecmnet3 directory and unzip ecmnet.zip to uncompress
7) change to gmp-ecm/ecm-6.0.1 directory and run ./configure, make, make check, as you now know how to :-)
8) change to ecmnet3/ecmnet/source directory and run make to generate ecmclient file
9) copy ecm file from gmp-ecm/ecm-6.0.1 to ecmnet3/ecmnet/client directory
10) copy ecmclient file from ecmnet3/ecmnet/source to ecmnet3/ecmnet/client directory
11) change to ecmnet3/ecmnet/client directory and edit ecmclient.cfg to point to relevant server etc. as others have shown you/similar to in Windows [make sure you refer to the ecm executable as ./ecm, rather than just ecm]
12) from within the ecmnet3/ecmnet/client directory run ./ecmclient

That should do it - I understand you've connected OK from Windows, so you'll know what messages to expect if succcessful.
The beauty of this system (as you'll see from _my_ attached relevant dirfile) is that it enables you (if desired) to compile multiple different versions of gmp-ecm and easily choose/swap between them.

Attachment 1043
It is now 9.5 months later. The Linux computer I was being helped with worked for about 3 months and then quit working. since all I used it for was DC, I am still a noob.

I tried the above instructions on my new Linux computer, when I got to ./configure it printed out some stuff and the last three lines were:

Code:
checking for C compiler default output file name... configure: error: C compiler cannot create executables
See 'config log' for more details.
I have no idea where config.log is, so can't post it.
jasong is offline   Reply With Quote
Old 2006-12-04, 21:56   #49
rogue
 
rogue's Avatar
 
"Mark"
Apr 2003
Between here and the

22×7×227 Posts
Default

Quote:
Originally Posted by jasong View Post
Code:
checking for C compiler default output file name... configure: error: C compiler cannot create executables
See 'config log' for more details.
I have no idea where config.log is, so can't post it.
The config.log is in the same folder as the configure script. It appears, from what little is posted here, that GMP cannot find the C compiler. Is it installed?
rogue is online now   Reply With Quote
Old 2006-12-07, 01:30   #50
jasong
 
jasong's Avatar
 
"Jason Goatcher"
Mar 2005

3×7×167 Posts
Default

Here is what is in config.log:
Code:
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by ecm configure 6.0.1, which was
generated by GNU Autoconf 2.59.  Invocation command line was

  $ ./configure 

## --------- ##
## Platform. ##
## --------- ##

hostname = linux0
uname -m = x86_64
uname -r = 2.6.17-10-generic
uname -s = Linux
uname -v = #2 SMP Fri Oct 13 15:34:39 UTC 2006

/usr/bin/uname -p = unknown
/bin/uname -X     = unknown

/bin/arch              = x86_64
/usr/bin/arch -k       = unknown
/usr/convex/getsysinfo = unknown
hostinfo               = unknown
/bin/machine           = unknown
/usr/bin/oslevel       = unknown
/bin/universe          = unknown

PATH: /usr/local/sbin
PATH: /usr/local/bin
PATH: /usr/sbin
PATH: /usr/bin
PATH: /sbin
PATH: /bin
PATH: /usr/bin/X11
PATH: /usr/games


## ----------- ##
## Core tests. ##
## ----------- ##

configure:1324: checking for a BSD-compatible install
configure:1379: result: /usr/bin/install -c
configure:1390: checking whether build environment is sane
configure:1433: result: yes
configure:1498: checking for gawk
configure:1527: result: no
configure:1498: checking for mawk
configure:1514: found /usr/bin/mawk
configure:1524: result: mawk
configure:1534: checking whether make sets $(MAKE)
configure:1554: result: yes
configure:1816: checking for gcc
configure:1832: found /usr/bin/gcc
configure:1842: result: gcc
configure:2086: checking for C compiler version
configure:2089: gcc --version </dev/null >&5
gcc (GCC) 4.1.2 20060928 (prerelease) (Ubuntu 4.1.1-13ubuntu5)
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

configure:2092: $? = 0
configure:2094: gcc -v </dev/null >&5
Using built-in specs.
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --enable-languages=c,c++,fortran,objc,obj-c++,treelang --prefix=/usr --enable-shared --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --enable-nls --program-suffix=-4.1 --enable-__cxa_atexit --enable-clocale=gnu --enable-libstdcxx-debug --enable-mpfr --enable-checking=release x86_64-linux-gnu
Thread model: posix
gcc version 4.1.2 20060928 (prerelease) (Ubuntu 4.1.1-13ubuntu5)
configure:2097: $? = 0
configure:2099: gcc -V </dev/null >&5
gcc: '-V' option must have argument
configure:2102: $? = 1
configure:2125: checking for C compiler default output file name
configure:2128: gcc    conftest.c  >&5
/usr/bin/ld: crt1.o: No such file: No such file or directory
collect2: ld returned 1 exit status
configure:2131: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| 
| #define PACKAGE_NAME "ecm"
| #define PACKAGE_TARNAME "ecm"
| #define PACKAGE_VERSION "6.0.1"
| #define PACKAGE_STRING "ecm 6.0.1"
| #define PACKAGE_BUGREPORT "ecm-dev@lists.fousse.info"
| #define PACKAGE "ecm"
| #define VERSION "6.0.1"
| /* end confdefs.h.  */
| 
| int
| main ()
| {
| 
|   ;
|   return 0;
| }
configure:2170: error: C compiler cannot create executables
See `config.log' for more details.

## ---------------- ##
## Cache variables. ##
## ---------------- ##

ac_cv_env_CC_set=
ac_cv_env_CC_value=
ac_cv_env_CFLAGS_set=
ac_cv_env_CFLAGS_value=
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_LDFLAGS_set=
ac_cv_env_LDFLAGS_value=
ac_cv_env_build_alias_set=
ac_cv_env_build_alias_value=
ac_cv_env_host_alias_set=
ac_cv_env_host_alias_value=
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_path_install='/usr/bin/install -c'
ac_cv_prog_AWK=mawk
ac_cv_prog_ac_ct_CC=gcc
ac_cv_prog_make_make_set=yes

## ----------------- ##
## Output variables. ##
## ----------------- ##

ACLOCAL='${SHELL} /home/jasong/ecm/gmp-ecm/ecm-6.0.1/missing --run aclocal-1.9'
AMDEPBACKSLASH=''
AMDEP_FALSE=''
AMDEP_TRUE=''
AMTAR='${SHELL} /home/jasong/ecm/gmp-ecm/ecm-6.0.1/missing --run tar'
AUTOCONF='${SHELL} /home/jasong/ecm/gmp-ecm/ecm-6.0.1/missing --run autoconf'
AUTOHEADER='${SHELL} /home/jasong/ecm/gmp-ecm/ecm-6.0.1/missing --run autoheader'
AUTOMAKE='${SHELL} /home/jasong/ecm/gmp-ecm/ecm-6.0.1/missing --run automake-1.9'
AWK='mawk'
CC='gcc'
CCDEPMODE=''
CFLAGS=''
CPPFLAGS=''
CYGPATH_W='echo'
DEFS=''
DEPDIR=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EXEEXT=''
INCLUDES=''
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
INSTALL_STRIP_PROGRAM='${SHELL} $(install_sh) -c -s'
LDADD=''
LDFLAGS=''
LIBOBJS=''
LIBS=''
LTLIBOBJS=''
MAKEINFO='${SHELL} /home/jasong/ecm/gmp-ecm/ecm-6.0.1/missing --run makeinfo'
OBJEXT=''
PACKAGE='ecm'
PACKAGE_BUGREPORT='ecm-dev@lists.fousse.info'
PACKAGE_NAME='ecm'
PACKAGE_STRING='ecm 6.0.1'
PACKAGE_TARNAME='ecm'
PACKAGE_VERSION='6.0.1'
PATH_SEPARATOR=':'
RANLIB=''
SET_MAKE=''
SHELL='/bin/bash'
STRIP=''
VERSION='6.0.1'
ac_ct_CC='gcc'
ac_ct_RANLIB=''
ac_ct_STRIP=''
am__fastdepCC_FALSE=''
am__fastdepCC_TRUE=''
am__include=''
am__leading_dot='.'
am__quote=''
am__tar='${AMTAR} chof - "$$tardir"'
am__untar='${AMTAR} xf -'
bindir='${exec_prefix}/bin'
build=''
build_alias=''
build_cpu=''
build_os=''
build_vendor=''
datadir='${prefix}/share'
exec_prefix='NONE'
host=''
host_alias=''
host_cpu=''
host_os=''
host_vendor=''
includedir='${prefix}/include'
infodir='${prefix}/info'
install_sh='/home/jasong/ecm/gmp-ecm/ecm-6.0.1/install-sh'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localstatedir='${prefix}/var'
mandir='${prefix}/man'
mkdir_p='mkdir -p --'
oldincludedir='/usr/include'
prefix='NONE'
program_transform_name='s,x,x,'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target_alias=''

## ----------- ##
## confdefs.h. ##
## ----------- ##

#define PACKAGE "ecm"
#define PACKAGE_BUGREPORT "ecm-dev@lists.fousse.info"
#define PACKAGE_NAME "ecm"
#define PACKAGE_STRING "ecm 6.0.1"
#define PACKAGE_TARNAME "ecm"
#define PACKAGE_VERSION "6.0.1"
#define VERSION "6.0.1"

configure: exit 77
jasong is offline   Reply With Quote
Old 2006-12-07, 12:45   #51
paulunderwood
 
paulunderwood's Avatar
 
Sep 2002
Database er0rr

376410 Posts
Default

Do you have "binutils" installed?
paulunderwood is offline   Reply With Quote
Old 2006-12-08, 00:03   #52
jasong
 
jasong's Avatar
 
"Jason Goatcher"
Mar 2005

3×7×167 Posts
Default

Quote:
Originally Posted by paulunderwood View Post
Do you have "binutils" installed?
version 2.17-ubuntu1, although it's possible I installed it at some point after the log was made. I'll try ./configure again, just for the heck of it. (Nope, same error)

Remember, guys, I'm a noob, so the error could be something totally obvious.
jasong is offline   Reply With Quote
Old 2006-12-08, 02:52   #53
paulunderwood
 
paulunderwood's Avatar
 
Sep 2002
Database er0rr

22·941 Posts
Default

Next: Do you have "libc6-dev" installed?
paulunderwood is offline   Reply With Quote
Old 2006-12-08, 05:08   #54
Xyzzy
 
Xyzzy's Avatar
 
"Mike"
Aug 2002

5×17×97 Posts
Default

apt-get install build-essential
Xyzzy is offline   Reply With Quote
Old 2006-12-12, 21:43   #55
jasong
 
jasong's Avatar
 
"Jason Goatcher"
Mar 2005

3·7·167 Posts
Default

After following the following isntructions(months later now, on a different machine) I got to the 7th instruction and, well, the result is at the bottom of the message. Could the files have been altered in the interim?


Quote:
1) create a 'gmp-ecm' directory
2) create a 'ecmnet3' directory at the same level
3) put ecm-6.0.1.tar.gz in gmp-ecm directory
4) put ecmnet.zip in ecmnet3 directory
5) change to gmp-ecm directory and tar -zxvf ecm-6.0.1.tar.gz to uncompress
6) change to ecmnet3 directory and unzip ecmnet.zip to uncompress
7) change to gmp-ecm/ecm-6.0.1 directory and run ./configure, make, make check, as you now know how to :-)
8) change to ecmnet3/ecmnet/source directory and run make to generate ecmclient file
9) copy ecm file from gmp-ecm/ecm-6.0.1 to ecmnet3/ecmnet/client directory
10) copy ecmclient file from ecmnet3/ecmnet/source to ecmnet3/ecmnet/client directory
11) change to ecmnet3/ecmnet/client directory and edit ecmclient.cfg to point to relevant server etc. as others have shown you/similar to in Windows [make sure you refer to the ecm executable as ./ecm, rather than just ecm]
12) from within the ecmnet3/ecmnet/client directory run ./ecmclient
Code:
jasong@linux0:~/ecm/gmp-ecm/ecm-6.0.1$ ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking for ranlib... ranlib
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking for an ANSI C-conforming const... yes
checking for working volatile... yes
checking for gmp.h... no
configure: error: gmp.h may be missing 
jasong@linux0:~/ecm/gmp-ecm/ecm-6.0.1$ make
make: *** No targets specified and no makefile found.  Stop.
jasong is offline   Reply With Quote
Reply

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
Noob Question Pickwun Information & Answers 7 2017-11-07 19:17
Noob Question: What to use bozocv Msieve 36 2015-12-31 00:12
Noob C question nuggetprime Programming 6 2008-08-23 11:09
linux noob at work ... tnerual Sierpinski/Riesel Base 5 2 2007-08-05 18:33
Linux/SUSE noob trouble - Resize partition OmbooHankvald Linux 19 2005-11-18 10:39

All times are UTC. The time now is 23:24.


Fri Aug 6 23:24:10 UTC 2021 up 14 days, 17:53, 1 user, load averages: 4.60, 4.18, 4.08

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.