LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 04-17-2013, 09:29 AM   #1
wang
Member
 
Registered: Dec 2010
Distribution: ubuntu 10.04
Posts: 43

Rep: Reputation: 0
how to install g++ on fresh installed ubuntu from .deb files or source code


Hi,friends!

I have just installed Ubuntu 10.10 by CD drive and I want to use it as the host for building LFS 7.3 system.To satisfy the host requirements,I need to install g++ first to install ncurses(maybe I am wrong for this) to install textinfo.

Now the problem is that I need to install g++ but cannot use apt-get(No network),so how to install g++
from .deb or source files? Where can I get them?

Thanks for any help
 
Old 04-17-2013, 09:34 AM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,850

Rep: Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309
either you have it on cd or should be downloaded.
 
Old 04-17-2013, 09:38 AM   #3
wang
Member
 
Registered: Dec 2010
Distribution: ubuntu 10.04
Posts: 43

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by pan64 View Post
either you have it on cd or should be downloaded.
Thanks.I should have done what you said and then ask the question
 
Old 04-17-2013, 09:47 AM   #4
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,850

Rep: Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309
so I don't understand the question. if you have a deb package you can install it with dpkg -i. to download you need to look for an official repo. You can reach this site, so you can download packages. http://packages.ubuntu.com/, http://packages.ubuntu.com/lucid-updates/devel/g++-4.4 and of course you can use wget to download packages
 
Old 04-17-2013, 09:52 AM   #5
Lennie
Member
 
Registered: Aug 2012
Location: Sweden
Distribution: LFS, built with pacman
Posts: 374

Rep: Reputation: 85
Quote:
Originally Posted by wang View Post
I have just installed Ubuntu 10.10
Why did you install such an old system? It is outdated long ago, so you can't get packages for it. Install 12.04-lts or 12.10 instead.
 
Old 04-17-2013, 02:03 PM   #6
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Void, Linux From Scratch, Slackware64
Posts: 3,150

Rep: Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856
If you are going to start compiling software on ubuntu you must at least install the build-essential package not just g++, also you will have to install -dev packages for anything you want to compile against.
 
Old 05-09-2013, 01:03 AM   #7
wang
Member
 
Registered: Dec 2010
Distribution: ubuntu 10.04
Posts: 43

Original Poster
Rep: Reputation: 0
Since it seems annoying installing g++ and it is not my goal(I originally want to install the textinfo package!),I just leave it uninstalled.I installed another package termcap and successfully installed textinfo.However,all your advice is helpful,thanks for your kindness!
 
Old 05-09-2013, 01:10 AM   #8
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,850

Rep: Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309
glad to hear that. If you really want to say thanks just click on YES. (installing g++ should not be a hard task anyway)
 
  


Reply



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
Source code to get the location of installed files after rpm installation Arighna Programming 7 07-26-2011 06:55 AM
Where does Ubuntu Software Center install .deb files? CocaCola Linux - Newbie 7 07-08-2011 04:32 PM
Can standard *deb files be installed in a nexenta install...? Alexvader Solaris / OpenSolaris 2 03-04-2011 05:07 PM
I have Ubuntu and Fedora installed, and I'd like to format and do a fresh install. Linseed Linux - Newbie 3 02-07-2010 10:01 PM
How to install the latest Gparted in Ubuntu by source, and convert into .deb? ussr_1991 Linux - Software 0 08-22-2007 05:40 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 06:36 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
Open Source Consulting | Domain Registration