LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (https://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   how to install g++ on fresh installed ubuntu from .deb files or source code (https://www.linuxquestions.org/questions/linux-from-scratch-13/how-to-install-g-on-fresh-installed-ubuntu-from-deb-files-or-source-code-4175458483/)

wang 04-17-2013 09:29 AM

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

pan64 04-17-2013 09:34 AM

either you have it on cd or should be downloaded.

wang 04-17-2013 09:38 AM

Quote:

Originally Posted by pan64 (Post 4933228)
either you have it on cd or should be downloaded.

Thanks.I should have done what you said and then ask the question

pan64 04-17-2013 09:47 AM

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

Lennie 04-17-2013 09:52 AM

Quote:

Originally Posted by wang (Post 4933219)
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.

Keith Hedger 04-17-2013 02:03 PM

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.

wang 05-09-2013 01:03 AM

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!

pan64 05-09-2013 01:10 AM

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


All times are GMT -5. The time now is 02:41 PM.