Search FAQ

Gammon Forum

Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the password reset link.
 Entire forum ➜ SMAUG ➜ Compiling the server ➜ SWRiP Linux Commands

SWRiP Linux Commands

Posting of new messages is disabled at present.

Refresh page


Pages: 1 2  

Posted by Chipps125   (13 posts)  Bio
Date Mon 03 Nov 2008 06:55 PM (UTC)
Message
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.
Top

Posted by David Haley   USA  (3,881 posts)  Bio
Date Reply #1 on Mon 03 Nov 2008 07:45 PM (UTC)
Message
To unpack an archive called "archive.tgz":

tar -czf archive.tgz

To change directories into a directory called "foo":

cd foo

David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone

http://david.the-haleys.org
Top

Posted by Nick Gammon   Australia  (23,122 posts)  Bio   Forum Administrator
Date Reply #2 on Mon 03 Nov 2008 08:23 PM (UTC)
Message
Unpacking is the "x" action, "c" is for creating. Thus:


tar -xzf archive.tgz



- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Chipps125   (13 posts)  Bio
Date Reply #3 on Mon 03 Nov 2008 08:32 PM (UTC)
Message
Thanks everyone, very very much.
Top

Posted by David Haley   USA  (3,881 posts)  Bio
Date Reply #4 on Mon 03 Nov 2008 09:15 PM (UTC)
Message
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.

David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone

http://david.the-haleys.org
Top

Posted by Chipps125   (13 posts)  Bio
Date Reply #5 on Mon 03 Nov 2008 09:36 PM (UTC)
Message
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
Top

Posted by Chipps125   (13 posts)  Bio
Date Reply #6 on Tue 04 Nov 2008 03:32 PM (UTC)
Message
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.
Top

Posted by David Haley   USA  (3,881 posts)  Bio
Date Reply #7 on Tue 04 Nov 2008 03:56 PM (UTC)
Message
Yes, that is exactly what you are supposed to be doing: go to the 'src' directory and then compile using 'make'.

David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone

http://david.the-haleys.org
Top

Posted by Chipps125   (13 posts)  Bio
Date Reply #8 on Tue 04 Nov 2008 03:59 PM (UTC)
Message
I did that, but I got an error code or two, and now commands like ls won't work. Simple solution?
Top

Posted by David Haley   USA  (3,881 posts)  Bio
Date Reply #9 on Tue 04 Nov 2008 05:19 PM (UTC)
Message
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 Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone

http://david.the-haleys.org
Top

Posted by Nick Gammon   Australia  (23,122 posts)  Bio   Forum Administrator
Date Reply #10 on Tue 04 Nov 2008 07:48 PM (UTC)
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.



- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Chipps125   (13 posts)  Bio
Date Reply #11 on Tue 04 Nov 2008 10:55 PM (UTC)
Message
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
Top

Posted by Chipps125   (13 posts)  Bio
Date Reply #12 on Tue 04 Nov 2008 10:57 PM (UTC)
Message
Edit: The command problem no longer persists. I just cannot get the code to compile. Maybe using the wrong directory?
Top

Posted by Zeno   USA  (2,871 posts)  Bio
Date Reply #13 on Wed 05 Nov 2008 12:36 AM (UTC)
Message
That error has been answered before, search the forum.

Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org
Top

Posted by David Haley   USA  (3,881 posts)  Bio
Date Reply #14 on Wed 05 Nov 2008 03:35 PM (UTC)
Message
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?

David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone

http://david.the-haleys.org
Top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


46,652 views.

This is page 1, subject is 2 pages long: 1 2  [Next page]

Posting of new messages is disabled at present.

Refresh page

Go to topic:           Search the forum


[Go to top] top

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.