[SOLVED] how to install g++ on fresh installed ubuntu from .deb files or source code
Linux From ScratchThis 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
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.
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.
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?
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
Distribution: Void, Linux From Scratch, Slackware64
Posts: 3,150
Rep:
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.
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!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.