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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
![Reply](https://www.linuxquestions.org/questions/images/buttons/reply.gif) |
10-13-2007, 03:14 PM
|
#1
|
LQ Newbie
Registered: Oct 2007
Posts: 4
Rep:
|
Where are the Standard C Libraries in my file system?
hello!
i'm new to linux and have recently installed ubuntu on an old machine at my house.
after some doing, i was able to get emacs installed. however, when i tried to compile my own HELLO_WORLD, gcc couldn't locate the libraries (at least, it couldn't locate STDIO.H).
i thought that LIBC6 and LIBC6.1 were the standard C libraries (both of these were dependencies for emacs and i've installed both). am i mistaken thinking that, and is there some other package that i need? or is it the case that i already have what i need, and only need to direct gcc to it?
thank you!
|
|
|
10-13-2007, 03:28 PM
|
#2
|
Senior Member
Registered: Oct 2003
Location: UK
Distribution: Kubuntu 12.10 (using awesome wm though)
Posts: 3,530
Rep:
|
In Ubuntu (and many other distributions) the runtime and development versions of libraries are split into separate packages. Since most users only need the runtime libraries, these are the only ones installed by default. The compiler, linker and other development tools are also not installed by default.
To install them, you need to add the package "build-essential", which will automatically install the C compiler, some other tools and the libc development library. For C++ development you need the package g++.
Many non-trivial projects will use some build system like GNU Autoconf/Automake, CMake, Ant, and so on. Each of these have their own package which must also be installed if youo with to use them.
Since you are new to Ubuntu, I would recommend installing them using the Synaptic package manager. You don't need to download any files yourself - just open synaptic, search the the packages by name and select them for installation and apply the changes. It worries me slightly that you said it took a lot of effort to install emacs, as it should be a trivial operation - just add the "emacs" package in synaptic.
If you're not used to emacs, it might not be for you. It is a very capable editor, but it is a bit weird if you are used to Windows tools, which have a rather different style to them. I would recommend trying out different editors. Emacs and vi are popular with coders as they both have very powerful features, but both have quite a steep learning curve - especially vi, which to start with can be very frustrating.
|
|
|
10-13-2007, 06:01 PM
|
#3
|
LQ Newbie
Registered: Oct 2007
Posts: 4
Original Poster
Rep:
|
well, installing emacs was only a pain b/c i don't have a network connection on that machine.
i'm pretty familiar with the editor itself, i've been using it for over a year on the CS cluster at the university i attend (i'm working on a CS degree). when i work on my projects from home, i use putty to ssh into the cluster and do my projects from there.
the only thing that worries me about this setup is that when my network connection goes down, i can't accomplish anything unless i go to campus and work on the linux machines there.
sooooo...i need to have all the capabilities at home that i would in the computer science lab on campus, or i could potentially end up in a tough spot right before a deadline (that actually happened to me a couple of weeks ago, which is what motivated me to start switching over to linux at home).
am i basically looking for a .deb file called "build-essential"? and are you also saying that i might be missing my linker, as well?
thank you so much for your help!
|
|
|
10-13-2007, 06:40 PM
|
#4
|
Senior Member
Registered: Oct 2003
Location: UK
Distribution: Kubuntu 12.10 (using awesome wm though)
Posts: 3,530
Rep:
|
If you have network access on this machine you want to install the software to, you don't have to download anything manually - synaptic will do it all for you.
|
|
|
10-13-2007, 07:18 PM
|
#5
|
LQ Newbie
Registered: Oct 2007
Posts: 4
Original Poster
Rep:
|
i DO NOT have a network connection on the machine in question.
|
|
|
All times are GMT -5. The time now is 04:35 AM.
|
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
|
|