[gdal-dev] RE: compile from source on Ubuntu7.10 64bit EC2 instance
Randy George
rkgeorge at cadmaps.com
Wed Mar 19 13:11:55 EDT 2008
Hi,
I'd like to compile gdal-1.5.0 in an Ubuntu7.10 EC2 64bit
instance, because gdal_grid is not included in the Ubuntu universe
apt-get install gdal-bin. I'm a novice on gcc compile.
apt-get install gcc
#gcc -v
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
--with-gxx-include-dir=/usr/include/c++/4.1.3 --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.3 20070929 (prerelease) (Ubuntu 4.1.2-16ubuntu2)
However, when I run ./configure it fails:
./configure
/usr/src/gdal-1.5.0# ./configure
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking for gcc... gcc
checking for C compiler default output file name...
configure: error: C compiler cannot create executables
See `config.log' for more details.
Here is a part of the config.log
.
.
configure:2535: $? = 0
configure:2542: gcc -v >&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/l
ib --without-included-gettext --enable-threads=posix --enable-nls
--with-gxx-inc
lude-dir=/usr/include/c++/4.1.3 --program-suffix=-4.1 --enable-__cxa_atexit
--en
able-clocale=gnu --enable-libstdcxx-debug --enable-mpfr
--enable-checking=releas
e x86_64-linux-gnu
Thread model: posix
gcc version 4.1.3 20070929 (prerelease) (Ubuntu 4.1.2-16ubuntu2)
configure:2545: cd / = 0
configure:2552: gcc -V >&5
gcc: '-V' option must have argument
configure:2555: $? = 1
configure:2578: checking for C compiler default output file name
configure:2605: gcc conftest.c >&5
/usr/bin/ld: crt1.o: No such file: No such file or directory
collect2: ld returned 1 exit status
configure:2608: $? = 1
configure:2646: result:
configure: failed program was:
| /* confdefs.h. */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:2653: error: C compiler cannot create executables
thanks
randy
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/gdal-dev/attachments/20080319/5d2f906b/attachment.html
More information about the gdal-dev
mailing list