Register forum user name 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.

Due to spam on this forum, all posts now need moderator approval.

 Entire forum ➜ SMAUG ➜ SMAUG coding ➜ Cygwin

Cygwin

It is now over 60 days since the last post. This thread is closed.     Refresh page


Pages: 1  2 3  

Posted by Nick Gammon   Australia  (23,173 posts)  Bio   Forum Administrator
Date Reply #15 on Wed 27 Mar 2002 11:20 PM (UTC)
Message
And here's a nifty command I just read about:

cygcheck -s

This does a "cygwin check" of your installation.

- Nick Gammon

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

Posted by Microp   USA  (68 posts)  Bio
Date Reply #16 on Thu 28 Mar 2002 02:47 AM (UTC)

Amended on Thu 28 Mar 2002 03:19 AM (UTC) by Microp

Message
All of them worked except the following..

Example: ls - list a directory (like dir)
Typed: ls d
Output: No such file or directory.

Example: man gcc - manual (help) on gcc compiler
Typed: man gcc
Output: BASH: man: command not found

Example: man make - manual for make
Typed: man make
Output: BASH: man: command not found

Example: cd <dir> - change directory
Typed: cd d
Output: BASH: cd: d: No such file or directory.

I also tried: cygcheck -s
It worked, but it scrolled a bit to fast to really review what is said. I did it several times. But it didn't help, it scrolls to fast.

I do know that I got the following (it remained in the msdos window after completion)..
[There is more, but this is all I saw..]

^More..
gdbm
grep
gzip
libinl1
libncurses5
libncurses6
libreadline4
libreadline5
login
ncurses
pcre
readline
sed
sh-utils
tar
termcap
terminfo
textutils
which
zlib

Any ideas?

___________________________________

I noticed that "ls" is for unix and "dir" is for windows.
I'm running a windows machine, so that means I'd use windows commands right? (just maing sure since you listed both for me to try).
Windows Commands:
copy
del
move
dir
cd
Top

Posted by Nick Gammon   Australia  (23,173 posts)  Bio   Forum Administrator
Date Reply #17 on Thu 28 Mar 2002 03:08 AM (UTC)
Message
Sounds like you didn't download man, which is a bit strange. You could re-run setup.exe and scroll around until you find man. It isn't essential, but reading the documentation doesn't hurt. :)

As for "ls d" - it will say file not found, unless you have a file called "d". Try typing "ls" on its own.

Same for "cd". You need to specify a directory that exists.


Quote:

I'm running a windows machine, so that means I'd use windows commands right?


No, cygwin always runs on Windows, that is why the "win" is in the name.

Cygwin emulates Unix under Windows, and thus you type the Unix commands.

If you have a "command" window (in Windows) you use "dir", if you are typing into Cygwin, you use "ls".

- Nick Gammon

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

Posted by Nick Gammon   Australia  (23,173 posts)  Bio   Forum Administrator
Date Reply #18 on Thu 28 Mar 2002 03:11 AM (UTC)
Message
Quote:

It worked, but it scrolled a bit to fast to really review what is said. I did it several times. But it didn't help, it scrolls to fast.


You need to fix that. Click on the "system" menu (top left-hand corner of the Cygwin window), you should see a few menu items. Select "properties".

Then select "layout". Change screen buffer size to make it larger (I have 1000 lines). Then when a bit command comes you will see scroll bars, and can scroll back and look.

Otherwise it will be hopeless, you'll never see all your error messages.

- Nick Gammon

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

Posted by Microp   USA  (68 posts)  Bio
Date Reply #19 on Thu 28 Mar 2002 03:32 AM (UTC)

Amended on Thu 28 Mar 2002 04:05 AM (UTC) by Microp

Message
In the Cygwin window I see at the top menu..

Font Mark Copy FullScreen Properties Background Font

-I don't see "Systems", but I do see "Properties"

I try clicking on "Properties"..

-I see the following tabs in a popup window..

Program Font Memory Screen Miscellaneous

-Going through each of the tabs.. I don't see "Layout".




In the Cygwin window I tried..

"1s" and it output: BASH: 1s: Command Not Found.

I did the same for "cd", but it didn't give any output, all it did was repeat the <myname> <lastname>@COMP01 ~ prompt..

?
..One day, something has to work in our favor.




UPDATE: I went back to setup.exe and found that "make" was set to "skip" - so I didn't download it after all.

I am downloading it now. I also chose to download "ctags" (since I may find it useful). Also the "gcc,C,C++ Compilers" package, under the "Devel" category was set to "Skip"..I am downloading that as well.

Hopefully this will help.
Top

Posted by Microp   USA  (68 posts)  Bio
Date Reply #20 on Thu 28 Mar 2002 04:26 AM (UTC)

Amended on Thu 28 Mar 2002 05:16 AM (UTC) by Microp

Message
OK, here's another update, if you can call it an update..

Example: ls - list a directory (like dir
Typed: ls
Output: BASH: 1s: command not found

Example: man gcc - manual (help) on gcc compiler
Typed: man gcc
Output: BASH: man: command not found

Example: man make - manual for make
Typed: man make
Output: BASH: man: command not found

Example: cd <dir> - change directory
Typed: cd
Output: Redisplayed <myname> <lastname>@COMP01 ~

Example: dir - If you have a "command" window (in Windows) you use "dir"
Typed: dir
Output: Redisplayed <myname> <lastname>@COMP01 ~

...?
Top

Posted by Nick Gammon   Australia  (23,173 posts)  Bio   Forum Administrator
Date Reply #21 on Thu 28 Mar 2002 05:04 AM (UTC)
Message
When it says "man not found" it means you haven't installed the man program. Thus man <anything> won't work.

The command is "ls" (L followed by S in lower case) you are typing 1s (the number 1, followed by S).

LS means LiSt. However you must use lower case "ls" as Unix is case-sensitive.

The "number of lines" I referred to applies to Windows NT. You have Windows 95/98/SE, that doesn't seem to allow you to change the number of lines.

You can always "pipe" the output into "less" which lets you see a screenfull at a time. Make sure you have "less" installed. If not, "more" is similar.

Thus you might do this ...


cygcheck -s | less


(That is a vertical bar, not a number one, or an L). The vertical var is over the backslash on my keyboard.

Or if less isn't there, try more:


cygcheck -s | more

That should work, more or less. :)

As for "cd", typing "cd" on its own doesn't do anything, you need to cd to somewhere (cd - change directory).

eg.


cd ..
ls

- Nick Gammon

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

Posted by Microp   USA  (68 posts)  Bio
Date Reply #22 on Thu 28 Mar 2002 05:43 AM (UTC)
Message
lol,

I have been moving around with it, learning to go in an out of folders with >dir and >cd.

I had tried >ls, 1s, Is, etc. earlier.

"ls" is working fine now, now that I know that it lists the contents of the directory/folder you are in. Before I was just using it in the ~ area so it had nothing to list - and I therefore thought it wasn't working.

Cygwin will work on DoT right? I think that's what I'll eventually settle with.

I'll head backover to setup.exe, I basically live there anyway, and see if I can find the "man".

;)

Thanks for the help.
Top

Posted by Nick Gammon   Australia  (23,173 posts)  Bio   Forum Administrator
Date Reply #23 on Thu 28 Mar 2002 05:54 AM (UTC)

Amended on Thu 28 Mar 2002 05:55 AM (UTC) by Nick Gammon

Message

I think the current DoT compiles under Cygwin.

See this post: Compiling DoT under Cygwin


- Nick Gammon

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

Posted by Microp   USA  (68 posts)  Bio
Date Reply #24 on Thu 28 Mar 2002 04:24 PM (UTC)

Amended on Thu 28 Mar 2002 05:15 PM (UTC) by Microp

Message
"Man" was set to "skip" in setup.exe.

I downloaded it and tried..

Example: man gcc - manual (help) on gcc compiler
Typed: man gcc
Output: It worked!

Example: man make - manual for make
Typed: man make
Output: It worked!




I also tried cygcheck -s | less and cygcheck -s | less.

This helped alot.

Both allowed me to scroll through the installation list.

The only thing that looked like it might cause future problems was the following line: Not Found: gdb

Found: C:\CygwinA\bin\bash.exe
Found: C:\CygwinA\bin\cat.exe
Found: C:\CygwinA\bin\cpp.exe
Found: C:\CygwinA\bin\find.exe
Found: c:\WINDOWS\COMMAND\find.exe
Found: C:\CygwinA\bin\gcc.exe
Not Found: gdb
Found: C:\CygwinA\bin\ld.exe
Found: C:\CygwinA\bin\ls.exe
Found: C:\CygwinA\bin\make.exe
Found: C:\CygwinA\bin\sh.exe

19k 2002/02/20 C:\CygwinA\bin\cyggdbm.dll
22k 2001/12/13 C:\CygwinA\bin\cygintl-1.dll
45k 2001/04/25 C:\CygwinA\bin\cygform5.dll
26k 2001/04/25 C:\CygwinA\bin\cygmenu5.dll
156k 2001/04/25 C:\CygwinA\bin\cygncurses++5.dll
226k 2001/04/25 C:\CygwinA\bin\cygncurses5.dll
15k 2001/04/25 C:\CygwinA\bin\cygpanel5.dll
35k 2002/01/09 C:\CygwinA\bin\cygform6.dll
20k 2002/01/09 C:\CygwinA\bin\cygmenu6.dll
175k 2002/01/09 C:\CygwinA\bin\cygncurses++6.dll
202k 2002/01/09 C:\CygwinA\bin\cygncurses6.dll
12k 2002/01/09 C:\CygwinA\bin\cygpanel6.dll
17k 2001/06/28 C:\CygwinA\bin\cyghistory4.dll
108k 2001/06/28 C:\CygwinA\bin\cygreadline4.dll
20k 2002/01/13 C:\CygwinA\bin\cyghistory5.dll
121k 2002/01/13 C:\CygwinA\bin\cygreadline5.dll
40k 2001/11/21 C:\CygwinA\bin\cygpcre.dll
39k 2001/11/21 C:\CygwinA\bin\cygpcreposix.dll
50k 2002/03/12 C:\CygwinA\bin\cygz.dll
751k 2002/02/25 C:\CygwinA\bin\cygwin1.dll
Cygwin DLL version info:
DLL version: 1.3.10

Here's a list of what I have installed..

Package Version
ash 20020131-1
bash 2.05a-3
binutils 20011002-1
compface 1.4-5
ctags 5.2-1
cygwin 1.3.10-1
diff 0.0
figlet 2.2-1
fileutils 4.1-1
findutils 4.1
gawk 3.0.4-1
gcc 2.95.3-5
gdbm 1.8.0-4
grep 2.5g
groff 1.17.2-1
gzip 1.3.2-1
less 374-1
libintl1 0.10.40-1
libncurses5 5.2-1
libncurses6 5.2-8
libreadline4 4.1-2
libreadline5 4.2a-1
login 1.4-3
make 3.79.1-5
man 1.5g-2
more 2.11o-1
ncurses 5.2-8
pcre 3.7-1
readline 4.2a-1
sed 3.02-1
sh-utils 2.0-2
tar 1.13.19-1
termcap 20010825-1
terminfo 5.2-1
textutils 2.0.21-1
unzip 5.41-1
w32api 1.2-2
which 1.5-1
zlib 1.1.4-1




I'm looking for the "gdb" in setup.exe now.
Also I'll look over the Cygwin manual, along with your compiling Help Files.




Installed gdb (GNU Debugger) from setup.exe.
Output: Found: C:\CygwinA\bin\gdb.exe
Top

Posted by Microp   USA  (68 posts)  Bio
Date Reply #25 on Thu 28 Mar 2002 06:51 PM (UTC)
Message
In Cygwin..

<myname> <lastname>@COMP01 c:/Cygwin/Home/Nick

I type:
$ ls

Output:
smaug1.4a_mxp.tgz



Next..

<myname> <lastname>@COMP01 c:/Cygwin/Home/Nick

I type:
$ tar xzf smuag1.4a_mxp.tgz

Output:
tar (child): smuag1.4a_mxp.tgz: Cannot open: No such file or directory
tar (child): Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error exit delayed from previous errors



Why is this occuring?
Top

Posted by Microp   USA  (68 posts)  Bio
Date Reply #26 on Fri 29 Mar 2002 05:44 AM (UTC)

Amended on Fri 29 Mar 2002 06:21 AM (UTC) by Microp

Message
I have compiled my first mud (maybe).

After a brief period of frustration I realized what a dumb mistake I'd made. Perhaps you'll see that as well from my earlier post.

Thanks, one last time for the help Nick.

The only problem though are these final lines..



.
.
.
rm -f smaug
gcc -lcrypt -lregex -o smaug act_comm.o act_info.o a
wiz.o boards.o build.o clans.o comm.o comments.o const.o
ndler.o hashstr.o ibuild.o ident.o interp.o magic.o make
pxset.o mud_comm.o mud_prog.o player.o polymorph.o reque
ps.o skills.o special.o tables.o track.o update.o grub.o
es.o planes.o imm_host.o colorize.o
/usr/lib/gcc-lib/i686-pc-cygwin/2.95.3-5/../../../../i68
ot find -lcrypt
collect2: ld returned 1 exit status
make[1]: *** [smaug] Error 1
make[1]: Leaving directory `/home/nick/smaug/dist/src'
make: *** [all] Error 2




As opposed to the final lines in your example..

.
.
.
rm -f smaug
gcc -lcrypt -lregex -o smaug act_comm.o act_info.o act_move.o act_obj.o act
wiz.o boards.o build.o clans.o comm.o comments.o const.o db.o deity.o fight.o h
ndler.o hashstr.o ibuild.o ident.o interp.o magic.o makeobjs.o mapout.o misc.o
pxset.o mud_comm.o mud_prog.o player.o polymorph.o requests.o reset.o save.o sh
ps.o skills.o special.o tables.o track.o update.o grub.o stat_obj.o ban.o servi
es.o planes.o imm_host.o colorize.o
chmod g+w smaug.exe
chmod a+x smaug.exe
chmod g+w act_comm.o act_info.o act_move.o act_obj.o act_wiz.o boards.o build.o
clans.o comm.o comments.o const.o db.o deity.o fight.o handler.o hashstr.o ibui
d.o ident.o interp.o magic.o makeobjs.o mapout.o misc.o mpxset.o mud_comm.o mud
prog.o player.o polymorph.o requests.o reset.o save.o shops.o skills.o special.
tables.o track.o update.o grub.o stat_obj.o ban.o services.o planes.o imm_host
o colorize.o
make[1]: Leaving directory `/home/nick/smaug/dist/src'




What caused these errors?

Here is the "ls" after my compile (if it helps)..

Makefile
Makefile.Unix act_comm.c act_comm.o
act_comm.o const.o ident.o mapout.o services.o
act_info.c db.c imc-comm.h misc.c shops.c
act_info.o db.o imc-config.c misc.o shops.o
act_move.c deity.c imc-config.h mpxset.c skills.c
act_move.o deity.o imc-events.c mpxset.o skills.o
act_obj.c fight.c imc-interp.c mud.h special.c
act_obj.o fight.o imc-mail.c mud_comm.c special.o
act_wiz.c grub.c imc-mail.h mud_comm.o startup
act_wiz.o grub.o imc-mercbase.c mud_prog.c stat_obj.c
ban.c handler.c imc-mercbase.h mud_prog.o stat_obj.o
ban.o handler.o imc-mercdefs.h planes.c tables.c
bet.h hashstr.c imc-smaug.h planes.h tables.o
boards.c hashstr.o imc-util.c planes.o track.c
boards.o ibuild.c imc-version.c player.c track.o
build.c ibuild.o imc.c player.o update.c
build.o ice.c imc.h polymorph.c update.o
clans.c ice.h imm_host.c polymorph.o webclient.c
clans.o icec-merc.h imm_host.o requests.c webserver.c
colorize.c icec-mercbase.c interp.c requests.o
colorize.o icec-mercbase.h interp.o reset.c
comm.c icec.c magic.c reset.o
comm.o icec.h magic.o router.c
Top

Posted by Nick Gammon   Australia  (23,173 posts)  Bio   Forum Administrator
Date Reply #27 on Fri 29 Mar 2002 09:47 PM (UTC)
Message

Take a look at this post compiling under Cygwin.

It mentions the crypt problem.

You can help yourself by using the 'search' feature of the forum to answer such questions. For instance in this case the line before the line 'ld returned 1 exit status' mentioned the word crypt. I searched on 'cygwin smaug crypt' to find the above post.


- Nick Gammon

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

Posted by Microp   USA  (68 posts)  Bio
Date Reply #28 on Fri 29 Mar 2002 11:02 PM (UTC)

Amended on Fri 29 Mar 2002 11:12 PM (UTC) by Microp

Message
Alright I'll give that a try.

The posts mention Cygnus Compiler as opposed to Cygwin Compiler, is there no difference between them; and how I'd go about fixing this?




Also, when I attempted to compile DoT I got the same crypt error, will these edits work for DoT as well?
Top

Posted by Nick Gammon   Australia  (23,173 posts)  Bio   Forum Administrator
Date Reply #29 on Sat 30 Mar 2002 07:33 AM (UTC)
Message

Take a look at http://www.cygwin.com/.

In huge big letters at the very top of that page, it says "GNU + Cygnus + Windows = cygwin". I hope that answers your question.

As for DoT, maybe the exact same fixes won't work, but try reading the documentation, and the makefile that comes with it.


- Nick Gammon

www.gammon.com.au, www.mushclient.com
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.


121,486 views.

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

It is now over 60 days since the last post. This thread is closed.     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.