LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Distributions (https://www.linuxquestions.org/questions/linux-distributions-5/)
-   -   Compiling with Knoppix (https://www.linuxquestions.org/questions/linux-distributions-5/compiling-with-knoppix-251079/)

rigel_kent 11-04-2004 10:32 AM

Compiling with Knoppix
 
Hi ,

I had some problems with Knoppix - I only have access to the line command if I enter "Knoppix 2", otherwhise when it shows the command line and I do ENTER it begins to search for current hardware, etc...until it arrives to a screen with a voice telling "initiating starting sequence". After a few seconds, the screen turns black, and there it comes again, the same image with the same voice "initiating starting sequence"...and never stops. So I use the command that was indicated by a member of the Knoppix forum.
Now I have two problems regarding compiling C files with GCC or MAKE - remember please that I'm a newbie: what I want is, from time to time, compile about 10 C source code files to Linux executables that will run in my webhost provider. I've already made a partition ( Linux Swap ) with only 16 MB ( my system doesn't let me give more space - but I'm trying to solve the problem ) - but there comes my firt doubt: I don't see it in Windows anywhere; so, how can I put the C files that I want to compile there ( in that specific partition )? Can I copy them from a floppy disk to the new partition? But how?

Second: running GCC; I'm in the root of knoppix - What do I do? To wich directory do I move in? What command and where do I run the MAKE utility or GCC itself? What's the path of the partition...?

I'm a bit lost here...

Can you help me? This is quite urgent - the person who was compiling my source code to Linux is too busy ( so he says...). And I can't depend of him for life.

Regards,

rigel_kent

lethargo 11-04-2004 11:16 AM

rigel_kent,

I'm no linux compiling expert myself, but I will offer a couple comments until more knowledgable people can give better ones :-)

Quote:

I've already made a partition ( Linux Swap ) ... I don't see it in Windows anywhere; so, how can I put the C files that I want to compile there
I don't think a swap partition is what you want. A linux swap partition is to Linux what the swap file is to Windows, i.e. an overflow area for stuff that won't fit in memory--it's not intended for permanent storage.

I think what you want to do is to mount your Windows partition(s) from Knoppix. For example, if your Windows installation is on the first (or only) partition on your first (or only) IDE hard drive, you might try something like this from Knoppix...
Code:

mkdir /mnt/mycdrive
mount /dev/hda1 /mnt/mycdrive

The contents of your Windows C: drive should now appear under /mnt/mycdrive, and you can just copy the C files to somewhere else.

Note that depending on your version of Windows, the stuff under /mnt/mycdrive might be read-only to you, although if so, and if you want to write back to your Windows C: drive from under Knoppix, you might try looking for something called Captive NTFS in Knoppix.

Does any of that help?

rigel_kent 11-04-2004 11:42 AM

Almost...
 
Dear Lethargo,

I ( we ) almost did it ! I followed the steps you told me to, and compile the files succefully. The only problem is that while in Knoppix, I made ls and saw the files compilated. But when I entered the windows again they were not there...what could have happen?

I've done something wrong...

Regards,

rigel_kent


All times are GMT -5. The time now is 09:30 PM.