I'm trying to build LyX on a machine with a fresh installation of Ubuntu (something I've never done before).

So far I've done:

$ mkdir -p ~/lyx; cd ~/lyx;
$ svn co svn+ssh://svn.lyx.org/lyx/lyx-devel/trunk lyx-devel
$ cd ~/lyx/lyx-devel; ./autogen.sh

        LyX requires automake >= 1.5

$ sudo apt-get install automake

$ cd ~/lyx/lyx-devel; ./autogen.sh

$ mkdir -p ~/lyx/build; cd ~/lyx/build; ../lyx-devel/configure

The configure step fails with a message
        configure: error: C compiler cannot create executables. See
        'config.log' for more details

Looking at config.log, it finds gcc 4.1.2 but fails later on. I've appended the relevant section of config.log.

Any ideas?

/Christian

The file is here: http://www.lyx.org/~chr/build-test/config.log

Here is what I think is the relevant bit:
configure:3648: gcc --version >&5
gcc (GCC) 4.1.2 (Ubuntu 4.1.2-0ubuntu4)
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:3651: $? = 0
configure:3658: gcc -v >&5
Using built-in specs.
Target: i486-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 i486-linux-gnu
Thread model: posix
gcc version 4.1.2 (Ubuntu 4.1.2-0ubuntu4)
configure:3661: $? = 0
configure:3668: gcc -V >&5
gcc: '-V' option must have argument
configure:3671: $? = 1
configure:3694: checking for C compiler default output file name
configure:3721: gcc    conftest.c  >&5
/usr/bin/ld: crt1.o: No such file: No such file or directory
collect2: ld returned 1 exit status
configure:3724: $? = 1
configure:3762: result:
configure: failed program was


--
Christian Ridderström, +46-8-768 39 44               http://www.md.kth.se/~chr

Reply via email to