DSL Ideas and Suggestions :: Compiler



Okay, here's the deal.  I'm loving DSL - it's great, fast, efficient, and powerful.  However, I want to make my own little custom version that includes the gcc compiler, and the corresponding g++ linker.  So, I went to knoppix.net and got me a remastering howto, and it worked great.  Made a temp copy of dsl on a mounted disk, dpkg-restore to give me apt-get, then apt-get to do what I want.  And then this is what I get for error when I try and apt-get install g++:

Code Sample
root@ttyp0[root]# apt-get install g++
Reading Package Lists... Done
Building Dependency Tree... Done
Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming.

Since you only requested a single operation it is extremely likely that the package is simply not installable and a bug report against that package should be filed.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 g++: Depends: g++-2.95 but it is not going to be installed
E: Broken packages


I then go apt-get install g++ g++-2.95 and I get:

Code Sample
The following packages have unmet dependencies:
 g++-2.95: Depends: libstdc++2.10-dev (>= 1:2.95.4) but it is not going to be installed
E: Broken packages


So I go and follow the chain, and so on and so forth, so eventually I'm at apt-get install g++ g++-2.95 libstdc++2.10-dev libc6-dev libc6


Code Sample
The following packages have unpet dependencies:
 libc6-dev: Depends: libc6 (= 2.2.5-11.5) but 2.3.2.ds1-10 is to be installed
E: Broken packages


That's the part that confuses me - I can't install an older version of libc6, or a newer version of libc6-dev, so I'm at a loss for words here.  Anyone know of a way that I can work this thing out ?  I need a compiler, because I'm doing a c++ programming course in school, and DSL is a wonderful alternative to Fedora on my old Pentium 233 laptop - it takes almost 10 mins to load, while DSL takes maybe 3 or 4.

Thanks in advance.

>>PhrozenFear

try changing  /etc/apt/sources.list to testing, do an 'apt-get update' and then try again.
*lost*  What do you mean change it to testing ?  I'm still a newb at this - My main original flavour of linux was Redhat and the like - my main desktop at home runs Fedora Core 1.

>>PhrozenFear

Try this:

Open an xterminal window (Rxvt) and type:

sudo su
scite /etc/apt/sources.list


Then while in Scite, look for the line of text that does not begin with a pound sign character or '#'.  The '#' character is a "comment", REM or "remark" command.  All commands after the '#' on a line are then ignored.

So add a '#' sign in front of the above mentioned line.

Then Delete the '#' sign in front of the line that mentions 'testing' in it.

Finally, save the file to disk.

When you return to the Xterminal window, then type

apt-get update


and the apt program will download all of the package information associated with the 'testing' Debian program tree.  This tree will probably contain a newer version of the dependent program and may resolve your errors when trying to install a compiler.

See HTTP://www.debian.org      for more details on how the whole thing works.

Good Luck.

Thanks for that - I knew about commentedness, but I didn't know which file, nor what to edit out.  Again, thanks.  I'll try it in the morning and see where we go from there.

Now, a question - what's scite ?  Is that some sort of editor ?

>>PhrozenFear

Next Page...
original here.