LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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


Reply
  Search this Thread
Old 03-24-2011, 05:07 PM   #1
midimaster21b
LQ Newbie
 
Registered: Mar 2011
Posts: 3

Rep: Reputation: 0
Question No gcc, make, or build-essentials


Hi,
I'm new to Linux and I'm running Debian Lenny on a server and am connected to it via VNC. I would like to compile some programs from source but I don't have make, gcc, or build-essentials. I don't think that generally you are supposed to build things using the assembler so I thought I'd ask here. When I aptitude gcc I can get gcc-4.2-base or gcc-4.2 which i've downloaded and symbolic linked to a file called gcc in $PATH, but when i try and configure it says that it cant create executables. When i try and compile a simple program it says <stdio.h> cant be found. Make is not available via aptitude. Build-essentials doesnt show up at all via aptitude.

ive run apt-get update already many times and this is what my sources.list file looks like.

deb http://security.debian.org/ lenny/updates main contrib
deb-src http://security.debian.org/ lenny/updates main contrib
deb http://volatile.debian.org/debian-volatile lenny/volatile main contrib
deb-src http://volatile.debian.org/debian-volatile lenny/volatile main contrib
deb http://dotdeb.mirror.borgnet.us/ stable all
deb-src http://dotdeb.mirror.borgnet.us/ stable all
deb http://backports.debian.org/debian-backports lenny-backports main



What can I do? Any help would be greatly appreciated.
 
Old 03-24-2011, 05:24 PM   #2
andrewthomas
Senior Member
 
Registered: May 2010
Location: Chicago Metro
Distribution: Arch, Gentoo, Slackware
Posts: 1,690

Rep: Reputation: 308Reputation: 308Reputation: 308Reputation: 308
http://packages.debian.org/search?su...uild-essential

The name of the package is build-essential

This is a meta-package that should pull in all you need except maybe checkinstall.

Last edited by andrewthomas; 03-24-2011 at 05:26 PM.
 
Old 03-24-2011, 05:27 PM   #3
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,131
Blog Entries: 2

Rep: Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833
Removed: Haven't seen the main issues that the others here pointed to.

Last edited by TobiSGD; 03-24-2011 at 05:44 PM.
 
Old 03-24-2011, 05:35 PM   #4
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 271Reputation: 271Reputation: 271
I see a couple of issues. First, you should change "stable" in the dotdeb mirrors to "lenny". Stable now points to Squeeze.

Second, you need to add an official Debian repository. You have security and volatile and backports, but no official main repositories. The dotdeb mirror only hosts a limited number of files from your ISP.
 
Old 03-24-2011, 05:37 PM   #5
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156
Welcome to LQ.

gcc-4.2 will not work, unless e.g. g++ is installed :
g++ takes care, that libc6-dev, linux-libc-dev get installed.
First then gcc will work fully.
→ apt-get install g++ make autoconf automake libtool

'build-essential' : Mainly dpkg-dev
QUOTE: If you do not plan to build Debian packages, you don't need this package.
http://packages.debian.org/lenny/build-essential

..
 
Old 03-25-2011, 10:50 AM   #6
midimaster21b
LQ Newbie
 
Registered: Mar 2011
Posts: 3

Original Poster
Rep: Reputation: 0
Okay thank you so much that should give me a great start!
 
Old 03-31-2011, 12:50 PM   #7
midimaster21b
LQ Newbie
 
Registered: Mar 2011
Posts: 3

Original Poster
Rep: Reputation: 0
aptitude install dpkg-dev

Reading package lists... 0%
Reading package lists... 100%
Reading package lists... Done
Building dependency tree... 0%
Building dependency tree... 0%
Building dependency tree... 50%
Building dependency tree... 50%
Building dependency tree
Reading state information... 0%
Reading state information... 0%
Reading state information... Done
Reading extended state information... 0%
Reading extended state information
Initializing package states... 0%
Initializing package states... Done
Reading task descriptions... 0%
Reading task descriptions... Done
The following packages are BROKEN:

dpkg-dev

0 packages upgraded, 1 newly installed, 0 to remove and 7 not upgraded.

Need to get 772kB of archives. After unpacking 2007kB will be used.

The following packages have unmet dependencies:

dpkg-dev: Depends: make which is a virtual package.

Depends: libtimedate-perl which is a virtual package.

Unable to resolve dependencies! Giving up...

The following packages are BROKEN:

dpkg-dev

0 packages upgraded, 1 newly installed, 0 to remove and 7 not upgraded.

Need to get 772kB of archives. After unpacking 2007kB will be used.

aptitude failed to find a solution to these dependencies. You can solve them yourself by hand or type 'n' to quit.

The following packages have unmet dependencies:

dpkg-dev: Depends: make which is a virtual package.

Depends: libtimedate-perl which is a virtual package.

Resolve these dependencies by hand? [N/+/-/_/:/?] n

Abort.

testwbf:~# exit


How could I get past this issue? I dont really understand virtual packages and how to get past them. Any replies would be greatly appreciated. Thanks for your time!
 
Old 03-31-2011, 01:14 PM   #8
andrewthomas
Senior Member
 
Registered: May 2010
Location: Chicago Metro
Distribution: Arch, Gentoo, Slackware
Posts: 1,690

Rep: Reputation: 308Reputation: 308Reputation: 308Reputation: 308
Do you have the main lenny repo in your sources?

Code:
deb ftp.us.debian.org/debian/ lenny main contrib
deb-src ftp.us.debian.org/debian/ lenny main contrib
 
Old 03-31-2011, 01:46 PM   #9
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 271Reputation: 271Reputation: 271
Can you post your sources.list file again?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Older gcc,g++ and build essentials suryaemlinux Ubuntu 1 11-18-2010 02:57 PM
gcc-4.4.3 make error - failed to build gcc-4.4.3--please help aayu09 Fedora 4 03-05-2010 10:20 AM
How can I get and install build-essentials and kernel-headers using wget? zoanie Linux - Embedded & Single-board computer 4 11-17-2009 04:41 PM
remove the gcc-build, binutils-build, etc after make @d4M Linux From Scratch 6 01-26-2009 05:29 AM
Where can I download the build-essentials package for RHEL 4? ShaqDiesel Red Hat 3 08-29-2008 09:22 PM


All times are GMT -5. The time now is 09:43 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration