CompilerForum: DSL Ideas and Suggestions Topic: Compiler started by: PhrozenFear Posted by PhrozenFear on Mar. 09 2004,18:38
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++:
I then go apt-get install g++ g++-2.95 and I get:
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
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 Posted by Dan on Mar. 09 2004,22:34
try changing /etc/apt/sources.list to testing, do an 'apt-get update' and then try again.
Posted by PhrozenFear on Mar. 10 2004,03:25
*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 Posted by cbagger01 on Mar. 10 2004,04:52
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. Posted by PhrozenFear on Mar. 10 2004,07:49
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 Posted by PhrozenFear on Mar. 10 2004,10:27
Well, thanks for that. scite didn't work because I'm working on a chrooted ram thing, but that's okay - I just used vi. Now, my problem is the fact that I get a broken package with the one file I need:
Any idea what this means, as well as how to fix ? Posted by cbagger01 on Mar. 11 2004,05:09
I tried searching Google with your problem and found an interesting post for a solution:< http://www.cantech.net.au/plug/2001-07/msg00424.html > Posted by PhrozenFear on Mar. 11 2004,08:07
Thank you ever so much - that helped me immensely - libC is now installed.Now, what's this new problem I got...
I wonder if it's because it's tryin' to use the testing stuff still... *tries to do the apt-get update with stable*.... Well, it doens't install gcc 3-3, but it's still a gcc.... HOWEVER it doesn't like the g++... damn this is annoying. I fix one problem, and then seven others crop up... Why can't it just be an easy fix ? =) Now, on 0.6.0 I get the same problem - libgcc1 doesn't install this time for the aforementioned reason, but only with the testing packages. If I go back to the stable packages, and update, it worked. Thanks for the help. Posted by PhrozenFear on Mar. 12 2004,04:18
How about just including gcc and g++ in one of the next releases ? I tried my little remaster thing and I get a boot-time error trying to load the filesystem. =\
Posted by AwPhuch on June 22 2004,07:23
404...any other page or link?? I have the same stupid libc6 problem as well Brian AwPhuch Posted by roberts on June 22 2004,07:43
No problem getting gcc g++ and make using the following:1. boot from 0.7.1 cdrom 2. did a hard drive install selected enhance option 3. boot from hard drive 4. use menu to enable-apt 5. edit /etc/apt/sources.list ( changed stable to unstable ) 6. apt-get update 7. apt-get install make gcc g++ Posted by ke4nt1 on June 22 2004,08:24
If your not using the "enhanced" HDInstall to do this, roberts alsosuggested installing gnu-utils.dsl, rather than using busybox, if your attempting this from liveCD. The "unstable" in your sources.list is the key.. and remember to apt-get update after you edit the sources.list... All three... gcc, g++, make, ... installed without problems. 73 de Kent ke4nt Posted by chuck54 on June 27 2004,23:51
Hey Phrozenfear! Mind if I quiz you about college? I keep thinking I should get of my arse and do some proper work. What kind of entrance qualifications did you need for the c / c++ course?
Posted by Edgar Lin on June 28 2004,09:57
Try to install coreutil ... Posted by bluefreak on June 28 2004,12:16
i dont think dsl has any free space for such a big thing as gcc and its dependencies... Posted by snakevan on July 19 2004,10:48
in response to this error:"Setting up libc6 (2.3.2.ds1-11) ... date: invalid date `Wed Mar 10 09:28:22 UTC 2004' dpkg: error processing libc6 (--configure): subprocess post-installation script returned error exit status 1 Errors were encountered while processing: libc6 E: Sub-process /usr/bin/dpkg returned an error code (1)" from: < http://mail.plug.linux.org.au/pipermail/plug/2001-July/022235.html > a bug in unstable libs edit file /var/lib/dkpg/info/libc6.postinst change these two lines to this, removing the '-d' and '$blahblah' parts TZdate=$(LANG=C TZ="$timezone" date) UTdate=$(LANG=C TZ=UTC0 date) save, re-reun apt hope this works for you too! cheers Posted by Grim on July 19 2004,18:00
This sounds like the busybox problem with older DSL versions. If you didn't opt to install the GNUtils when you installed to hard drive, you can download tar from my website: wget -c < http://grimthing.com/downloads/tar > Try downloading that tar and chmod'ing it executable and move it to /bin. Then re-run your apt process and see if the error clears up. If it clears up, you have some busybox issues, if it doesn't clear up, post a copy of your sources.list and the list of *.dsl files you chose to install, and what steps you took to install make, gcc, g++ et.al. FYI, apt will upgrade nicely but it doesn't downgrade worth a shit. |