I relieze this is probably a dumb question, but I was wondering if anyone here knows the shell commands to unpack the archive, and to change the directory. Any help would be much appreciated.
SWRiP Linux Commands
Posted by Chipps125 on Mon 03 Nov 2008 06:55 PM — 16 posts, 66,299 views.
To unpack an archive called "archive.tgz":
To change directories into a directory called "foo":
tar -czf archive.tgzTo change directories into a directory called "foo":
cd foo
Unpacking is the "x" action, "c" is for creating. Thus:
tar -xzf archive.tgz
Thanks everyone, very very much.
Oops! -- sorry for the typo. I was thinking 'x' but hit 'c' by mistake. That could have been very confusing :-) Thanks for pointing it out Nick.
Well, I'm going to try to put my mud up here in a little bit. If I fail im sure you'll see me again. :-P
I have another question. Would it be likely that I would compile the code from the SRC directory. If this isn't, could you point me in the right direction.
Yes, that is exactly what you are supposed to be doing: go to the 'src' directory and then compile using 'make'.
I did that, but I got an error code or two, and now commands like ls won't work. Simple solution?
You'll need to show the errors and also explain what you mean by ls not working anymore. (e.g. is there an error message?)
David is right, it is nearly impossible to solve problems without seeing the error messages. You can copy and paste from the window, you know.
Also, be aware that Unix is case-sensitive. I notice you said SRC before, when the directory is really "src". So if you tried typing LS when you meant ls, it would not work.
Also, be aware that Unix is case-sensitive. I notice you said SRC before, when the directory is really "src". So if you tried typing LS when you meant ls, it would not work.
When I try to compile (make) the code from the directory "src" it gives me the following message.
make swrip
make[1]: Entering directory `/muds/galacticchaos/krussk/src'
g++ -c -g3 -Wall act_move.c
act_move.c: In function âROOM_INDEX_DATA* generate_exit(ROOM_INDEX_DATA*, EXIT_DATA**)â:
act_move.c:604: error: invalid lvalue in assignment
make[1]: *** [act_move.o] Error 1
make[1]: Leaving directory `/muds/galacticchaos/krussk/src'
make: *** [all] Error 2
make swrip
make[1]: Entering directory `/muds/galacticchaos/krussk/src'
g++ -c -g3 -Wall act_move.c
act_move.c: In function âROOM_INDEX_DATA* generate_exit(ROOM_INDEX_DATA*, EXIT_DATA**)â:
act_move.c:604: error: invalid lvalue in assignment
make[1]: *** [act_move.o] Error 1
make[1]: Leaving directory `/muds/galacticchaos/krussk/src'
make: *** [all] Error 2
Edit: The command problem no longer persists. I just cannot get the code to compile. Maybe using the wrong directory?
That error has been answered before, search the forum.
Geez, somebody really needs to fix these distributions to stop shipping with the same errors that have been fixed over and over again.
Chipps125, where did you get your codebase?
Chipps125, where did you get your codebase?
I got my SWRiP code from Darriks "The Source" website. I don't know the exact URL, I googled it.