c & c++ compiler


Forum: myDSL Extensions (deprecated)
Topic: c & c++ compiler
started by: adssse

Posted by adssse on Mar. 07 2005,05:08
I just installed dsl to my hardrive and have minimal linux experience. I have been compiling some programs on the linux server at school but have not been able to compile any of my programs in dsl. I have tried using mydsl to install gnu-utils.dsl and gcc1.dsl, but I am still unable to compile. I was wondering if someone could tell me if I was doing this wrong and what I have to do. Thanks in advance.
Posted by mikshaw on Mar. 07 2005,16:47
probably has more to do with lotsa missing stuff rather than with you doing anything wrong.  The most effective way to  fix a compiling problem is to see what errors you receive...without that it's practically impossible to help.

Unless you're compiling the simplest of programs you're going to need more than gcc and gnu utils....you may need X headers, various library files that don't come with DSL....lots of possible issues all depending on what program you're compiling.  DSL is not a development system, so any headers needed to compile a particular program will need to be found and installed first.

Posted by adssse on Mar. 07 2005,17:37
I apologize, I didnt even give anyone the error it gives me.

bash: gcc: command not found

Thanks for responding mikshaw. Sounds like I may have some trouble than. It was just a simple program I was trying to compile. I was just thinking that I could write and compile my programs with this instead of using the linux instructional server from school, but it is not essential. So far I really like dsl but without having any experience it tends to be frustrating.

Posted by Fordi on Mar. 11 2005,20:37
If you're installed to HD, you can use apt

right-click->Apps->Tools->Enable Apt

edit sources.list to get the "Testing" sources

hit up a terminal
apt-get update
apt-get install gcc g++ make

Posted by adssse on Mar. 12 2005,04:24
I am sorry this is probably a stupid question but how do I edit sources.list to get the "Testing" sources?
Posted by vert on Mar. 12 2005,04:39
cd /etc/apt/
vi sources.list

remove the # on the testing line
and make a # on the stable

Posted by Fordi on Mar. 12 2005,19:17
It'll be commented out with a #
put a # where the "stable" sources are and remove the # in front of the "testing" sources.

Posted by adssse on Mar. 12 2005,21:43
Thank you, I got it to work. I really appreciate all the help
Posted by Freitag on April 06 2005,20:45
The file you are looking for is:

/etc/apt/sources.list

A simple UNIX trick to find any file (if now in a protected directory is)

du -a / | fgrep <name of file with no blank spaces here>

This will search your entire tree for a file.  Note that fgrep cannot use wild card characters like * or ?

Cheers,
Freitag :)

Posted by SuperLou on April 17 2005,21:14
I'm sorry, this is probably really easy.  How do i edit and save the file after using the vi command.  The file says it is read only when I try to access it in a text editor.

Thanks,
Louis

Posted by SuperLou on April 17 2005,21:23
Well I figured out how to edit the file.  Now I get the following error when I run apt-get update:

(actually i just reallized  Idon't know how to copy and paste)

I get a bunch of errors about not being able to connect to things.

Thanks,
Louis

Powered by Ikonboard 3.1.2a
Ikonboard © 2001 Jarvis Entertainment Group, Inc.