LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Puppy
User Name
Password
Puppy This forum is for the discussion of Puppy Linux.

Notices

Reply
 
Search this Thread
Old 04-01-2010, 11:37 AM   #1
den_.
Member
 
Registered: Apr 2010
Posts: 39

Rep: Reputation: 15
Can't install GNU C Compiler


Hi, I have a problem installing the GNU C Compiler in Puppy 431, have followed the instructions on 'Barrys Developer Site'->developer section ->how to compile applications (for a hard drive installation). I have downloaded the file 'devx_431.sfs' but when I follow the instructions I get the following error: 'cp: target `/mnt/hda2/' is not a directory'.

My setup:
Windows XP (sda1)+ Puppy 4.3.1 dual boot with Grub
Small FAT 32 partition (sda5)
512 MB linux swap partition
ext 3 partition for Puppy 4.3.1 (sda7)

I have noticed that the installation instructions and the error message from the terminal refer to 'hda2'? Grub would see the partition in this way and it is causing me a bit of confusion, or am I (no pun intended) barking up the wrong tree?

Instructions that I am following:

1. Click on the devx_xxx.sfs in a ROX-Filer window to mount it.
2. Open a terminal in the mounted directory.
3. # cp -a --remove-destination ./* /mnt/hda2/
4. # sync
5. Close the terminal.
6. Click on the devx_xxx.sfs file to unmount it

On step 2. I have used 'cd /mnt' to change to the mounted directory.
On step 3. I get the error, I presume nothing else gets done.

Any help or advice is appreciated

thanks in advance

den_.
 
Old 04-01-2010, 01:09 PM   #2
towy71
Member
 
Registered: Oct 2003
Location: Carmarthen, Wales
Distribution: Ubuntu and whatever is new kid on the block
Posts: 70

Rep: Reputation: 18
I'm not familiar with Puppy but if you boot into puppy and bring up a terminal and type
Code:
fdisk -l
and post the result back here we can help you ;-)
 
Old 04-01-2010, 01:12 PM   #3
den_.
Member
 
Registered: Apr 2010
Posts: 39

Original Poster
Rep: Reputation: 15
Reply

Thanks for answering so quickly.

Disk /dev/sda: 80.0 GB, 80025280000 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sda1 * 1 5903 47415816 7 HPFS/NTFS
/dev/sda2 5904 9729 30732345 f W95 Ext'd (LBA)
/dev/sda5 5904 8388 19960731 b W95 FAT32
/dev/sda6 8389 8454 530113+ 82 Linux swap / Solaris
/dev/sda7 8455 9729 10241406 83 Linux

den_.
 
Old 04-01-2010, 01:27 PM   #4
towy71
Member
 
Registered: Oct 2003
Location: Carmarthen, Wales
Distribution: Ubuntu and whatever is new kid on the block
Posts: 70

Rep: Reputation: 18
den_. I think I have jumped in rather quickly and not knowing behind from elbow I am pointing you in the wrong direction

I am just running puppy for the first time in ages and need a little time to investigate further

Last edited by towy71; 04-01-2010 at 02:16 PM.
 
Old 04-01-2010, 01:46 PM   #5
den_.
Member
 
Registered: Apr 2010
Posts: 39

Original Poster
Rep: Reputation: 15
Reply

No worries my friend, I am really grateful for your help. I have only just got started with Linux and it seems that the bug has really bitten me! I have been messing around with computers since the early 80's, CBM 64 C16 +4 then (Amiga 1200 hated windows then :-)). I did get involved with Windows in a big way for quite some years now. So it seems I have gone full circle and I would like to learn more about Linux. I have a good beginners book on shell scripting and I need the Compiler up and running to explore installing software and perhaps writing programs. Didn't mean to waffle so much, thanks again for your help.

den_.
 
Old 04-01-2010, 02:57 PM   #6
towy71
Member
 
Registered: Oct 2003
Location: Carmarthen, Wales
Distribution: Ubuntu and whatever is new kid on the block
Posts: 70

Rep: Reputation: 18
You need to actually install puppy to it's own partition for your original commands to work! Have you thought about using a different version of Linux?
I would recommend you try ubuntu, mandriva or opensuse, much easier to install all the necessary things for programming.

Last edited by towy71; 04-01-2010 at 02:59 PM.
 
Old 04-01-2010, 03:14 PM   #7
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,645

Rep: Reputation: 2532Reputation: 2532Reputation: 2532Reputation: 2532Reputation: 2532Reputation: 2532Reputation: 2532Reputation: 2532Reputation: 2532Reputation: 2532Reputation: 2532
I guess, this is still valid :
http://www.puppylinux.com/hard-puppy.htm
Please see the last chapter, "C/C++ compiling"
Quote:
Puppy has a very simple system for converting into a complete compiler
environment, in which you can run the usual "configure", "make" and
"make install" on a downloaded source package. At least, it's very
simple in the case of running Puppy from live-CD: see web page
Puppy on a CD.
 
Old 04-02-2010, 01:45 PM   #8
den_.
Member
 
Registered: Apr 2010
Posts: 39

Original Poster
Rep: Reputation: 15
Thanks towy71, I take it that means a single installation of Puppy 4.3.1 to a hard drive? The only problem is that I need to have a dual boot setup with Windows XP. In step 6 of the installation instructions (6. # cp -a --remove-destination ./* /mnt/hda2/) do you know what/where 'hda2/' points to? Would it be: hda0 (puppy) hda1 (swap file) hda2 (devx_431.sfs files) I assume that all the files in the devx_431 package are being copied to a location on the hard disk, do you know if that is correct?

I have Ubuntu installed on an Intel based machine again dual boot with Windows, very happy with it but this machine is mainly for the family so I would like a small Linux distro installed dual boot with Windows on my AMD based machine because I do a lot of work on it to do with Windows and the Linux distro is there for me to go online without the constant hassle of virus updates etc and to experiment with.

Thanks in advance for any help

den_.
 
Old 04-02-2010, 01:54 PM   #9
den_.
Member
 
Registered: Apr 2010
Posts: 39

Original Poster
Rep: Reputation: 15
Thanks knufdl, I have been following the same instructions, I found them on a link to 'Barry's jumping off page' or something like that when I first fired up Seamonkey. I could do a 'frugal' install of Puppy 431 on to a Flash drive but I prefer to have all OS's installed on to the hard drive. Maybe I am being a bit dogmatic (no pun intended, honest :-))

den_.
 
Old 04-02-2010, 04:56 PM   #10
towy71
Member
 
Registered: Oct 2003
Location: Carmarthen, Wales
Distribution: Ubuntu and whatever is new kid on the block
Posts: 70

Rep: Reputation: 18
Have you looked at www.damnsmalllinux.org you can run it within windoze ;-)
 
Old 04-03-2010, 07:26 AM   #11
den_.
Member
 
Registered: Apr 2010
Posts: 39

Original Poster
Rep: Reputation: 15
I have heard of that one, I could give it a try. Do you know anything about Sliaz? I have downloaded an ISO image for it and I was going to try it out soon.
 
Old 04-03-2010, 07:36 AM   #12
den_.
Member
 
Registered: Apr 2010
Posts: 39

Original Poster
Rep: Reputation: 15
Thanks towy71, I have just checked out those sites and DSL may be the distro I need and the fact that it can become a Debian distro, well sort of by the sounds of it, will let me mess about with the Compiler as well :-).

Thanks for your help

den_.
 
Old 04-03-2010, 07:42 AM   #13
towy71
Member
 
Registered: Oct 2003
Location: Carmarthen, Wales
Distribution: Ubuntu and whatever is new kid on the block
Posts: 70

Rep: Reputation: 18
I presume you mean Slitaz? Do you have a penchant for making life difficult? If you are using ubuntu on one machine why not use it on two perhaps using Lubuntu on your AMD machine, that way you don't have to learn different ways of installing stuff etc ;-)
 
Old 04-04-2010, 06:27 AM   #14
den_.
Member
 
Registered: Apr 2010
Posts: 39

Original Poster
Rep: Reputation: 15
:-) LOL,It could appear that way, let me explain my situation. I have one machine (Intel) that is used as a general internet, games and work station by my wife and children, I sometimes use it myself if its more convenient. I installed Ubuntu on this machine quite some time ago because I was fed up with the constant virus/security "threat" that comes with Windows machines and I would like to say how well the Ubuntu distro works. I have another machine (AMD) and this is my work station. I have lots of tools and programs to fix PC's plus other things installed on this machine and I need internet access to get mother-board manuals, drivers etc. Although this is quite an old machine, I built it about ten years ago, it is more than adequate for my needs but it has (by todays standards) quite a small hard drive (120 Gig) and doesn't leave much room for another standard sized Linux distro. This is where the smaller sized distro's come in and also why I would prefer to have a dual boot setup and of course there is the speed element when booting/re-booting. The Compiler isn't totally necessary on the final installation to the 120 Gig HD but I was hoping to experiment with it on the 80 Gig HD that Puppy is on at the moment to gain more knowledge on how Linux ticks with regard to installing/uninstalling software outside of the package management environment (there I go again making it difficult again :-)). On a more serious note I may wish to install some software that isn't available on the package managed software install method. I don't really want to mess about with the Intel machine at such a low level in case I screw it up.
I am trying to make life easier these days, after all I have started to make the move from Windows to Linux ;-).

den_.
 
Old 04-05-2010, 03:47 AM   #15
towy71
Member
 
Registered: Oct 2003
Location: Carmarthen, Wales
Distribution: Ubuntu and whatever is new kid on the block
Posts: 70

Rep: Reputation: 18
I run an older machine for my wife to use, it an Athlon 850 cpu it has 512 mb ram and a 15gb hard drive. When it isn't doing my wife's bidding I use it to try out different distros, sometimes they work fine sometimes they struggle. Currently it runs Mandriva 2010
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
GNU Make and GNU GCC DEBUG vs RELEASE compiler options aryan1 Programming 1 01-12-2010 12:29 PM
Help with GNU C++ Compiler please... Stiltz Linux - Software 1 03-15-2005 09:17 PM
Gnu Compiler On Fedora 2/3 borisc General 1 02-04-2005 06:49 PM
where is GNU gcc compiler? karfei00 Linux - Newbie 5 06-16-2004 12:55 PM
Where to get compiler gnu c sofasurfer Linux - Games 1 01-11-2004 01:25 AM


All times are GMT -5. The time now is 07:47 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration