Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place! |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
09-01-2009, 05:20 PM
|
#1
|
|
LQ Newbie
Registered: Sep 2009
Posts: 5
Rep:
|
glibc on Ubuntu Feisty Fawn
Its a bit long please bare with me.
I am using an older version of Ubuntu, Feisty Fawn, i know its old i will be upgrading it soon but i have a few questions anyway.
I want to install glibc.
Initially i was having problems with "/configure" i was getting the message "configure: error: you must configure in a separate build directory" even though my path was "/usr/src/gnu/glibc-build$", a user in a different forum suggested using the command
"sr/src/glibc-build#> /usr/src/glibc-*.*/configure"
My first question is i don't understand this, why do i need to type "/usr/src/glibc-*.*" before configure when i already am in that folder
This worked in getting rid of that error, but now i am getting
"checking how to run the C preprocessor... /lib/cpp
configure: error: C preprocessor "/lib/cpp" fails sanity check"
Below is a portion of the config.log
## ----------- ##
## Core tests. ##
## ----------- ##
configure:2182: checking build system type
configure:2200: result: i686-pc-linux-gnulibc1
configure:2222: checking host system type
configure:2237: result: i686-pc-linux-gnulibc1
configure:2417: running configure fragment for add-on nptl
configure:2554: checking sysdep dirs
configure:2790: result: sysdeps/generic/elf sysdeps/generic
configure:2868: checking for a BSD-compatible install
configure:2924: result: /usr/bin/install -c
configure:2939: checking whether ln -s works
configure:2943: result: yes
configure:2999: checking for gcc
configure:3015: found /usr/bin/gcc
configure:3026: result: gcc
configure:3264: checking for C compiler version
configure:3271: 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:3274: $? = 0
configure:3281: 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:3284: $? = 0
configure:3291: gcc -V >&5
gcc: '-V' option must have argument
configure:3294: $? = 1
configure:3298: checking for suffix of object files
configure:3324: gcc -c conftest.c >&5
configure:3327: $? = 0
configure:3350: result: o
configure:3354: checking whether we are using the GNU C compiler
configure:3383: gcc -c conftest.c >&5
configure:3389: $? = 0
configure:3406: result: yes
configure:3411: checking whether gcc accepts -g
configure:3441: gcc -c -g conftest.c >&5
configure:3447: $? = 0
configure:3546: result: yes
configure:3563: checking for gcc option to accept ISO C89
configure:3637: gcc -c -g -O2 conftest.c >&5
conftest.c:10:19: error: stdio.h: No such file or directory
conftest.c:11:23: error: sys/types.h: No such file or directory
conftest.c:12:22: error: sys/stat.h: No such file or directory
conftest.c:15: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
conftest.c:49: error: expected declaration specifiers or '...' before 'FILE'
configure:3643: $? = 1
After a bit of googling i found someone having a similar problem not with glibc but a similar error with a different application, a few readers responded him by suggesting installing GCC, i have to GCC files in my usr/bin namely "gcc-4.1" of type executable, so my second question is do i have GCC?, if so what am i doing wrong?
Thanks
|
|
|
|
09-02-2009, 03:36 AM
|
#2
|
|
LQ Newbie
Registered: Sep 2009
Posts: 5
Original Poster
Rep:
|
anyone?
|
|
|
|
09-02-2009, 05:00 AM
|
#3
|
|
LQ 5k Club
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Laptop: Slackware 14.0 // Desktop: Slackware64 14.0 // Netbook: Slackware 14.0
Posts: 6,183
|
Did you install GCC on its own? Usually, with Ubuntu, you should install build-essential, which brings in libraries as well as compilers.
|
|
|
|
09-02-2009, 06:44 AM
|
#4
|
|
Member
Registered: Jul 2008
Distribution: Ubuntu 12.10
Posts: 139
Rep:
|
Quote:
Originally Posted by brianL
Did you install GCC on its own? Usually, with Ubuntu, you should install build-essential, which brings in libraries as well as compilers.
|
I have to agree with brianL; build-essential is what you want. You can install it graphically using the Synaptic Package Manager or open up a terminal and type in
Code:
sudo apt-get install build-essential
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 03:00 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|