Install/Setup Problem While Running ./configure

547 views
Skip to first unread message

mbies...@ebay.com

unread,
Apr 3, 2012, 8:59:47 PM4/3/12
to Protocol Buffers
I am trying to follow the install instructions in the README. The
step states to run ./configure. When I execute it the process dies
with the message:
...
checking for nawk... nawk
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
checking whether the C compiler works... no
configure: error: in `/export/home/mbiesenthal/projects/protobuf/
protobuf-2.4.1/gtest':
configure: error: C compiler cannot create executables
See `config.log' for more details.
configure: error: ./configure failed for gtest
...

How can I get around this compiler problem?

Vishwas Goel

unread,
Jun 12, 2012, 7:03:50 PM6/12/12
to prot...@googlegroups.com
Snippet from config.log as below:

configure:3261: checking for gcc
configure:3277: found /usr/bin/gcc
configure:3288: result: gcc
configure:3517: checking for C compiler version
configure:3526: gcc --version >&5
gcc (Ubuntu 4.4.3-4ubuntu5) 4.4.3
Copyright (C) 2009 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:3537: $? = 0
configure:3526: gcc -v >&5
Using built-in specs.
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 4.4.3-4ubuntu5' --with-bugurl=file:///usr/share/doc/gcc-4.4/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --enable-shared --enable-multiarch --enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.4 --program-suffix=-4.4 --enable-nls --enable-clocale=gnu --enable-libstdcxx-debug --enable-plugin --enable-objc-gc --disable-werror --with-arch-32=i486 --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 4.4.3 (Ubuntu 4.4.3-4ubuntu5)
configure:3537: $? = 0
configure:3526: gcc -V >&5
gcc: '-V' option must have argument
configure:3537: $? = 1
configure:3526: gcc -qversion >&5
gcc: unrecognized option '-qversion'
gcc: no input files
configure:3537: $? = 1
configure:3557: checkng whether the C compiler works
configure:3579: gcc    conftest.c  >&5
/usr/bin/ld: crt1.o: No such file: No such file or directory
collect2: ld returned 1 exit status
configure:3583: $? = 1
configure:3621: result: no
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "Protocol Buffers"
| #define PACKAGE_TARNAME "protobuf"
| #define PACKAGE_VERSION "2.4.1"
| #define PACKAGE_STRING "Protocol Buffers 2.4.1"
| #define PACKAGE_BUGREPORT "prot...@googlegroups.com"
| #define PACKAGE_URL ""
| #define PACKAGE "protobuf"
| #define VERSION "2.4.1"
| /* end confdefs.h.  */
|
| int
| main ()
| {
|
|   ;
|   return 0;
| }
configure:3626: error: in `/home/ubuntu/protobuf-2.4.1':
configure:3630: error: C compiler cannot create executables

See `config.log' for more details.



On Tue, Jun 12, 2012 at 6:06 PM, Vishwas Goel <vish...@gmail.com> wrote:
Did u figure this out already? I am seeing a similar error..

--
You received this message because you are subscribed to the Google Groups "Protocol Buffers" group.
To view this discussion on the web visit https://groups.google.com/d/msg/protobuf/-/RdbJs0GjS-MJ.
To post to this group, send email to prot...@googlegroups.com.
To unsubscribe from this group, send email to protobuf+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/protobuf?hl=en.

Vishwas Goel

unread,
Jun 12, 2012, 7:11:19 PM6/12/12
to prot...@googlegroups.com
apt-get install libc6-dev
fixed this.. Moving on..
Reply all
Reply to author
Forward
0 new messages