Can I compile from within Puppy? (Short answer: yes)
-
- Posts: 5
- Joined: Thu 06 Oct 2005, 08:36
Can I compile from within Puppy? (Short answer: yes)
Heyo. I was just checking out Puppy Linux because DSL from a USB key seems to cause my mini-ITX board some major issues. In any case, after installing Puppy to a USB drive, I read the HOWTO on writing software for Puppy, and noticed something about not being able to compile C.
Well, the whole point of my mini machine is a light weight computer I can carry and develop on. Right now I'm mainly interested in C, and I hope to learn more about OSS so I can program sound applications. Is it totally impossible to install a C compiler on puppy and program with the OSS packages? I'm still new to Linux, so I'm not really sure what can and can't be done on various distros. But it seems like there should be a way to do these things, and if not, I should probably look for another solution.
Thanks for your time,
Wireframewolf
Well, the whole point of my mini machine is a light weight computer I can carry and develop on. Right now I'm mainly interested in C, and I hope to learn more about OSS so I can program sound applications. Is it totally impossible to install a C compiler on puppy and program with the OSS packages? I'm still new to Linux, so I'm not really sure what can and can't be done on various distros. But it seems like there should be a way to do these things, and if not, I should probably look for another solution.
Thanks for your time,
Wireframewolf
- Lobster
- Official Crustacean
- Posts: 15522
- Joined: Wed 04 May 2005, 06:06
- Location: Paradox Realm
- Contact:
Start here
http://www.goosee.com/puppy/development/compileapps.htm
and here
http://www.goosee.com/puppy/wikka/Compiling
(boy that needs updating . . .)
It is possible to compile C in Puppy
Welcome to the kennels
http://www.goosee.com/puppy/development/compileapps.htm
and here
http://www.goosee.com/puppy/wikka/Compiling
(boy that needs updating . . .)
It is possible to compile C in Puppy
Welcome to the kennels
-
- Posts: 5
- Joined: Thu 06 Oct 2005, 08:36
Thanks, but I'm still a little confused. That first article says 'compiling within puppy' which is what I want, but seems to use another Linux OS for the creation of applications rather than doing it all 'within' Puppy. Am I missing something here?
Even the second article isn't much help, as those rules for compiling something generally apply to any OS.
Even the second article isn't much help, as those rules for compiling something generally apply to any OS.
News Page-Aug 20 wrote:To compile applications from within Puppy, just place the usr_devx.sfs file on the hard drive in the same place as the pup001/2 file. Boot Puppy and you are immediately ready to compile. This capability was pioneered with 1.0.5alpha1, further improved in the upcoming alpha2.
I have added a further useful capability: a squashfs file named usr_more.sfs will also get mounted on /usr. A use for this could be anything very big that needs to be in /usr, for example the complete collection of KDE libraries and applications -- just by placing usr_more.sfs in the same hard drive partition as pupxxx, Puppy will have all the KDE apps.
Bottom line:
- Go to the puppy download page www.puppylinux.com
- Download usr_devx.sfs
- If you are using a pupxxx file: Put usr_devx.sfs in the same place where the pupxxx file is.
- If you have a HDD installation, put usr_devx.sfs under /
- Reboot puppy
that's it!
- Go to the puppy download page www.puppylinux.com
- Download usr_devx.sfs
- If you are using a pupxxx file: Put usr_devx.sfs in the same place where the pupxxx file is.
- If you have a HDD installation, put usr_devx.sfs under /
- Reboot puppy
that's it!
-
- Posts: 5
- Joined: Thu 06 Oct 2005, 08:36
Oh, the usr_devx.sfs is not a library and it is not a 'linux thing' it is specific to Puppy, it is a filesystem that gets mounted as a unionfs under /usr.that file allow you to compile C with a compiler like
Think of it as a folder structure that is overlaid on top of /usr, so if the standard puppy /usr has a file /usr/bin/something and the usr_dev.sfs has a file /usr/bin/somethingelse, then, after mounting usr_devx.sfs on top of the standard puppy, if you go to the /usr/bin foder, you will see both files.
After that convoluted explanation: the usr_devx.sfs contains the tools and libraries to compile linux applications.
It was separated that way to keep the standard puppy small while still allowing people that wanted to compile the ability to do it.
-
- Posts: 5
- Joined: Thu 06 Oct 2005, 08:36
Ah. Thanks for the helpful explaination. Knowing that, I'm pretty excited about using this operating system. I really wanted something portable to go with my hard driveless Mini-itx that I could learn to program with OSS in. Of course, I still don't know if I'll be able to use OSS, but I reckon there's some way to do it.
Anyways, now I'm looking foward to using the OS. Thanks for all your help.
Anyways, now I'm looking foward to using the OS. Thanks for all your help.
How would the dotpup know what type of install that you have and exactly what partition a type 1 installation was using?Perkins wrote:Perhaps some enterprising soul could create a dotpup that would put that one file in the proper place...
I think we are mssing the point. This file has all the compile tools built into a filesystem structure. Just drop it where you need to and your ready to go. Look at it as a pupget or dotpup file that does not need to be installed.
Creating a dotpup file would be repeating work already done.
I just did this on my hard drive install and compiled Wine. It works very well. Drop the file in the appropriate place and your ready to go. No need to install anything.
I love it when a plan comes together
--Hannibal Smith
--Hannibal Smith
The pupxxx file is not in the LiveCD.
If your computer has a FAT32, ext2 or ext3 partition, the Live CD will create it there (unless you tell it not to create it).
If you have an Windows XP system with just an NTFS parition, you need to download the zip file and extract it to C:\pup001
Before you ask why can it be created from the LiveCD too: Puppy cannot write to the NTFS partition. It can only write to the pup001 file on the NTFS partition.
There sugestion floating in another post to have a windows tool on the liveCD to create it.
If your computer has a FAT32, ext2 or ext3 partition, the Live CD will create it there (unless you tell it not to create it).
If you have an Windows XP system with just an NTFS parition, you need to download the zip file and extract it to C:\pup001
Before you ask why can it be created from the LiveCD too: Puppy cannot write to the NTFS partition. It can only write to the pup001 file on the NTFS partition.
There sugestion floating in another post to have a windows tool on the liveCD to create it.
How big is usr_devx.sfs ?
This is a Very Enlightening discussion -- but just how big is this one giant download I have to get somehow?
Re: How big is usr_devx.sfs ?
Just over 44 MB. You'll find it here.kethd wrote:...just how big is this one giant download I have to get somehow?
See also:
http://puppylinux.org/wikka/ProgrammingLanguage
a growing list of all the languages potentially available in Puppy.
http://puppylinux.org/wikka/ProgrammingLanguage
a growing list of all the languages potentially available in Puppy.
-
- Posts: 295
- Joined: Sat 03 Dec 2005, 11:30
It has as much to do as the fact that the sky is blue.shankargopal wrote:And how would all this apply to the multisession CD? Sorry, not able to figure it out...
This thread is about compiling applications under Puppy.
Puppy's installation/usage method is orthogonal to compiling under puppy. The only relation is that both are puppy topics.
Why did you try to 'apply' this thread to multisession?