![]() |
|
|
#45 |
|
Sep 2005
1778 Posts |
Isn't Linux cool!
J |
|
|
|
|
|
#46 |
|
"Jason Goatcher"
Mar 2005
3×7×167 Posts |
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 Edit: Sorry, I should've mentioned it's working absolutely perfectly. Last fiddled with by jasong on 2006-02-22 at 22:23 |
|
|
|
|
|
#47 |
|
"Mike"
Aug 2002
5×17×97 Posts |
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 |
|
|
|
|
|
#48 | |
|
"Jason Goatcher"
Mar 2005
1101101100112 Posts |
Quote:
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. |
|
|
|
|
|
|
#49 |
|
"Mark"
Apr 2003
Between here and the
22×7×227 Posts |
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?
|
|
|
|
|
|
#50 |
|
"Jason Goatcher"
Mar 2005
3×7×167 Posts |
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
|
|
|
|
|
|
#51 |
|
Sep 2002
Database er0rr
376410 Posts |
Do you have "binutils" installed?
|
|
|
|
|
|
#52 |
|
"Jason Goatcher"
Mar 2005
3×7×167 Posts |
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. |
|
|
|
|
|
#53 |
|
Sep 2002
Database er0rr
22·941 Posts |
Next: Do you have "libc6-dev" installed?
|
|
|
|
|
|
#54 |
|
"Mike"
Aug 2002
5×17×97 Posts |
apt-get install build-essential
|
|
|
|
|
|
#55 | |
|
"Jason Goatcher"
Mar 2005
3·7·167 Posts |
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:
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. |
|
|
|
|
![]() |
| 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 |