LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
LinkBack Search this Thread
Old 05-15-2012, 06:47 AM   #1
mohsenaria
LQ Newbie
 
Registered: May 2012
Posts: 19

Rep: Reputation: Disabled
Installing gcc on Debian Squeeze


Hi guys,
i have installed Debian squeeze on a machine that have no cd-rom and no network connection. after installation i decided to compile some c programs. unfortunately i saw that gcc is not installed! so i decided to install it by this command : 'apt-get install gcc' this command didn't work! and said that i should use it with '--fix-missing' so i entered : 'apt-get install gcc --fix-missing' this command needs you to put your cd in drive but i have installed my Debian by writing it's iso image to a usb flash with unetbootin. so i plugged my usb flash to keep on. but it say :
media change: please insert the disk labled
'Debian GNU/Linux 6.0.4_Squeeze_ - official amd64 CD Binary -1 20120128-13:42'
in the drive '/media/cdrom/' and press enter


after this disaster! i decided to mount Debian ISO image that was on my usb flash with mount command:
mount debian-6.0.4-amd64-CD-1.iso /media/cdrom -o loop
after running this command i can see the CD content in file manager without any problem but again have problem with apt-get
does anyone have any suggestion?
thanks.
 
Old 05-15-2012, 07:06 AM   #2
pan64
Senior Member
 
Registered: Mar 2012
Location: Hungary
Distribution: debian i686 (solaris)
Posts: 4,001

Rep: Reputation: 1003Reputation: 1003Reputation: 1003Reputation: 1003Reputation: 1003Reputation: 1003Reputation: 1003Reputation: 1003
debian now consists of ~50 CDs. Maybe gcc is located on another one.
 
Old 05-15-2012, 07:16 AM   #3
mohsenaria
LQ Newbie
 
Registered: May 2012
Posts: 19

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by pan64 View Post
debian now consists of ~50 CDs. Maybe gcc is located on another one.
i have tried it on another machine that have CD-ROM and it worked correctly!
by the way it says: Debian GNU/Linux 6.0.4_Squeeze_ - official amd64 CD Binary -1 20120128-13:42
note that after Binary is '-1' that means cd number one.
 
Old 05-15-2012, 07:22 AM   #4
pan64
Senior Member
 
Registered: Mar 2012
Location: Hungary
Distribution: debian i686 (solaris)
Posts: 4,001

Rep: Reputation: 1003Reputation: 1003Reputation: 1003Reputation: 1003Reputation: 1003Reputation: 1003Reputation: 1003Reputation: 1003
apt-get needs a repository, it cannot use "anything" mounted, you should configure it to use the given path for packages. But if you want to install only this one you can look for the package (gcc.*deb) and install it with dpkg by hand.
 
Old 05-15-2012, 07:49 AM   #5
mohsenaria
LQ Newbie
 
Registered: May 2012
Posts: 19

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by pan64 View Post
apt-get needs a repository, it cannot use "anything" mounted, you should configure it to use the given path for packages. But if you want to install only this one you can look for the package (gcc.*deb) and install it with dpkg by hand.
also do that but when installing some packages it has some errors! it works with CD-ROM pretty nice. but with iso images have problem.
 
  


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 On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
GCC 4.5+ on Debian Squeeze jhwilliams Debian 3 03-29-2012 03:35 AM
Various segmentation faults Debian Squeeze Virtualbox running on Debian Squeeze host fordwrench Debian 1 07-21-2011 03:55 AM
Installing GCC on Debian Squeeze sidrox93 Linux - Software 12 05-21-2011 10:59 AM
Installing Debian Squeeze on a 1201n 108134865 Debian 18 08-11-2010 05:59 PM
[SOLVED] Installing Eclipse on Debian Squeeze nima0102 Debian 9 12-14-2009 12:01 PM


All times are GMT -5. The time now is 03:51 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration