GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   another nix question (https://gfy.com/showthread.php?t=82337)

[MistaT] 10-12-2002 07:31 PM

another nix question
 
so i got mandrake running..

i want to compile code, how do i do this?

i think ur menna use gcc but i cant figure it out

thanks

smashface 10-12-2002 07:39 PM

What are you trying to compile?

Pete 10-12-2002 07:39 PM

I cant figure it out either

[MistaT] 10-12-2002 07:46 PM

Quote:

Originally posted by smashface
What are you trying to compile?
anything

smashface 10-12-2002 07:47 PM

how about an actual example? Show us the actual file you are trying to compile.

[MistaT] 10-12-2002 07:52 PM

wanna know what im trying to compile?

it is - hello

why the fuck do u want to know, if u know how just help us out



gcc hello.c -o hello world


why does this not work?

codemebaby 10-12-2002 07:52 PM

I dont think you want to compile just "anything"...heh

thats no fun :P

check out rpms, they're great for people who dont know what they're doing to atleast get started...

Dragon Curve 10-12-2002 08:11 PM

Don't use RPMs. They're the root of all evil =)

To compile hello.c will require a simple:
gcc -o hello hello.c

Filenames can only be one word, unless you do something like gcc -o 'hello world' hello.c
Which is bad in general, avoid spaces in filenames.

Anything you download and want to compile will often come with a Makefile or a configure script. For example, say you want to compile MyProgram 1.0 - it would generally be something like

tar xzf myprogram-1.0.targz
cd myprogram-1.0
./configure
make
make install

You might want to read through some Linux HOWTOs or maybe even grab a nice book on Linux. Compiling stuff is the easy part, it gets harder from there on in :P

Oh and if you're running Mandrake, well, you shouldn't be :P But if you are, make SURE you chmod -s your linuxconf binary.

Type "which linuxconf" and find the path to the file and then simply "chmod -s /bin/linuxconf" or whatever the path to it is. Linuxconf has a huge local exploit on it and is +s for all Mandrake dists - very exploitable.


All times are GMT -7. The time now is 10:16 PM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123