LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Puppy (http://www.linuxquestions.org/questions/puppy-71/)
-   -   Learning C/C++ in Puppy (http://www.linuxquestions.org/questions/puppy-71/learning-c-c-in-puppy-929948/)

meridius10 02-17-2012 04:28 PM

Learning C/C++ in Puppy
 
I have a spare old laptop I would like to use to learn C/C++ in Linux.

Unfortunately I only have mobile broadband (works on Ubuntu) but am looking to see if Puppy already has a compiler to learn C/C++ (i.e. is there any need to download anything?).

If not I will put Ubuntu on it and download whatever is needed as I know it works with my mobile broadband but is a little heavy.

liberalchrist 02-19-2012 08:38 AM

Puppy is unconventional in that it defaults to a root user and makes it very difficult to work with a normal user. This is absolutely not the type of environment you want to develop programs in, so I think you want to pick almost any other distro. I love Puppy, but it just was not designed for what you suggest.

meridius10 02-20-2012 06:38 AM

Are you aware of any other distro that has a C/C++ compiler installed without needing an internet connection for additional downloads?

I have an old version Xubuntu (8.04) but have had many problems getting it to work.

Topaz 02-23-2012 03:26 PM

c++
 
Quote:

Originally Posted by liberalchrist (Post 4606505)
Puppy is unconventional in that it defaults to a root user and makes it very difficult to work with a normal user. This is absolutely not the type of environment you want to develop programs in, so I think you want to pick almost any other distro. I love Puppy, but it just was not designed for what you suggest.

Hi
Liberalchrist. I am a game and applications developer and I use puppy for C++, Java and Python because of the issues of permissions of users. Running in root has great advantages when it comes to developement work.

meridius10 02-23-2012 05:57 PM

Really simple question but how do you default to root?

Do you need any further installs for a C and C++ compiler in Puppy?

Topaz 02-24-2012 08:38 AM

Hi
Quote:

Originally Posted by meridius10 (Post 4610485)
Really simple question but how do you default to root?

Puppy runs as root by default, You have to do nothing. Your home folder in puppy is called root.
There is another user called spot which is used for runnung the webserver (Hiawatha) in puppy.

[QUOTE Do you need any further installs for a C and C++ compiler in Puppy?[/QUOTE]

Yes you only require the devx.sfs file that provides the compilers and Python.
In puppy its easy to install either using the boot manager or the sfs loader depending on which version of puppy you are using. Just ask a friend to download the devx for the version of puppy you are using from http://distro.ibiblio.org/puppylinux/.

If you decide to go down this route just ask for links and instructions on how to install .sfs files if you get stuck.

Yours Topaz

meridius10 02-24-2012 12:53 PM

Thanks for all this info. which I will keep in mind.

I actually installed the latest version of Xubuntu yesterday and ran some updates to get the C++ compiler working on it, but if I use Puppy again for that purpose I will try your suggestions.

mahaju 03-29-2012 04:23 AM

Put the devfx***.sfs (has to match particular puppy version) file on the same location as the lupu528.sfs file
goto menu > system > bootmanager configure bootup > choose which extra sfs files to load at bootup
select the devfx file
restart
gcc should be available in the command line
I think you can set it up to be used through geany as well, but I personally like codeblocks better as IDE

meridius10 03-29-2012 06:24 AM

Thanks. If I ever use Puppy for this purpose then will do...


All times are GMT -5. The time now is 10:14 PM.