Cygwin

Posted by Microp on Sun 24 Mar 2002 10:35 PM — 35 posts, 128,425 views.

USA #0
I downloaded Cygwin, but I am having trouble unzipping ? setting it up.

I did a search for setup.exe but it found nothing in the Cygwin folder. Does this mean I didn't download it correctly, that I haven't unzipped it, or?

I use winzip to download things, but when I downloaded Cygwin it didn't go through winzip..so I assume it's not a .zip or didn't need to be unzipped.

Basically Im confused.

Here is a layout of the top two layers of the items in my Cygwin folder..

Cygwin (folder)
Setup.log
Setup.log.full
ftp%3a%2f%2farchive.progeny.com%2fcygwin (folder)
Contrib (folder with futher contents)
Latest (folder with further contents)
Setup.ini
Australia Forum Administrator #1
Last time I used Cygwin, you ran some sort of setup.exe from their site. This worked out what you needed and downloaded it for you.
USA #2
Still no luck, I downloaded it again, did a search for setup.exe in the new cygwin founlder but found nothing.

The setup.exe is a gui to download the cygwin compiler, or so I understand. Yet I can't find out how to install/run/unzip it. I read over the cygwin site, but it didn't detail anything on this.

Any help would be great.
Australia Forum Administrator #3
On the Cygwin site is a link "Install Cygwin now" that goes to:

http://cygwin.com/setup.exe

If you run that (ie. open it) then it should do its stuff.
USA #4
Sorry to bother you with such newbie questions.
I really appreciate your help with this.

Quote:
On the Cygwin site is a link "Install Cygwin now" that goes to: http://cygwin.com/setup.exe
If you run that (ie. open it) then it should do its stuff.
Quote:


Question: I've done that (4 times), waited for it to download, then when it says in a pop-up window "download complete", I go to the file that I had it downloaded into -open it and look through it - but I can't find any file that'll launch Cygwin. Once you have Cygwin downloaded, what next? Do you need something other than winzip to unzip it (assuming it isn't already unzipped)?

I was thinking that setup.exe was a file you downloaded that actually launched Cygwin - not the actual downloader process itself. Sorry for the confusion.

Once again, sorry for such lame questions. I've ordered several books on C programing, and have spent hours looking over various helpfiles on mud building. Evetually I'll improve.
Australia Forum Administrator #5
Quote:

Once you have Cygwin downloaded, what next? Do you need something other than winzip to unzip it (assuming it isn't already unzipped)?


The setup.exe is a program, you shouldn't be able to "look through it".

When you run it (execute, open it) it should work out how much of Cygwin, if any, you have installed, and install the rest. Once that is done it should be ready to use.
USA #6
startup.exe choices..

-Install from internet

-Download from internet

-Install from local directory

1) I FIRST have to choose "Download from Internet" correct?
In the startup.exe screens, which lists the different packages, what do I have to do? Nothing? -Just click "Next"?

2) Once I do that (download it) do I THEN choose "Install from Internet" OR "Install from Local Directory"?
..After I choose one, and proceed..in the startup.exe screen which list the different Cygwin packages, do I have to do anything here? -Just click "Next"?

3) The startup.exe then installs Cygwin onto my computer..


As you can see, I am having trouble figuring out how to download it using the startup.exe GUI.
Australia Forum Administrator #7

I think I installed from the Internet, although that is usually something I don't do. Take a look at New With Cygwin Compiler. There is a discussion from someone who didn't have 'make'. You will see a screenshot of what you should see (in part).

Make sure you choose development tools, inter alia, or you will be posting next that it can't find 'make'. (You need make, gcc, gdb, patch, diff, include files, runtime libraries - basically most stuff).

USA #8
I choose "install from internet"..

Then in the setup.exe screen that lists a bunch of downloadable packages, I have to manually choose the correct Cygwin packages?

These Cygwin packages that I need are listed in category "Devel"..
-make
-gcc
-gdb
-patch
-diff
-include files
-runtime libraries

I'm doing my best to understand this. Is this right?
Australia Forum Administrator #9
I think you need categories:

  • Base
  • Devel
  • Doc
  • Editors
  • Interpreters
  • Libs
  • Shells
  • Text
  • Utils


That should be enough. You might get away with slightly less, but it mightn't be worth the effort.
USA #10
Got it!

Ok, the setup.exe screen which lists the different packages is setup sort of like a tree menu.

I click on those branches (that you listed above) to expand them so that they list all of their contents.

After I do that, do I need to click on each of their contents? Or is just expanding those category branches enough?
Australia Forum Administrator #11
If you click on the little double-arrowed circle, the wording changes. Mine was initially "default" (whatever that is), but can be cycled through "install", "reinstall" and "uninstall".

I'm not sure what "default" means, you could try reading their web page. You could leave most at default, and the others to "uninstall", or make the ones you want "install" and the others "uninstall" (I suppose).
USA #12
I'm downloading it now.

I've read, and re-read all the help files on their site ..I don't know maybe I'm skipping some vital webpage..

I'll give it yet another shot.
USA #13
Alright, I may have it this time.

I opened the categories you listed above in the setup.exe, then downloaded (installed from internet) it..

I now have the launch icon on my desktop.

When I click on the launch icon a ms-dos window comes up with..
_______________________________________
<Myname> <Lastname>@COMP01 ~
$



_______________________________________

I know you've several helpfiles already created (am looking over them now), but I was wondering if you know of any commands I could type into the Cygwin window to determine if I got it right this time..(all important files installed?, installed correctly..?)

Or perhaps you know of another way.
Australia Forum Administrator #14
You can try:

  • ls - list a directory (like dir)
  • man gcc - manual (help) on gcc compiler
  • man make - manual for make
  • man bash - manual for bash (the shell)
  • cd <dir> - change directory
  • pwd - Print Working Directory (ie. what directory am I in?)
  • whoami - who am I? ie. your login name
  • df - list mounted file systems with disk space
  • df -h - as above, but show space in Kb, Mb etc.
  • du --max-depth=1 -h - show disk taken by current directory
  • ps - show running processes


Then you can work through my example about 'how to compile' - untar the SMAUG distribution, and follow the example.
Australia Forum Administrator #15
And here's a nifty command I just read about:

cygcheck -s

This does a "cygwin check" of your installation.
USA #16
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
Amended on Thu 28 Mar 2002 03:19 AM by Microp
Australia Forum Administrator #17
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".
Australia Forum Administrator #18
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.
USA #19
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.
Amended on Thu 28 Mar 2002 04:05 AM by Microp
USA #20
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 ~

...?
Amended on Thu 28 Mar 2002 05:16 AM by Microp
Australia Forum Administrator #21
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
USA #22
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.
Australia Forum Administrator #23

I think the current DoT compiles under Cygwin.

See this post: Compiling DoT under Cygwin

Amended on Thu 28 Mar 2002 05:55 AM by Nick Gammon
USA #24
"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
Amended on Thu 28 Mar 2002 05:15 PM by Microp
USA #25
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?
USA #26
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
Amended on Fri 29 Mar 2002 06:21 AM by Microp
Australia Forum Administrator #27

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.

USA #28
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?
Amended on Fri 29 Mar 2002 11:12 PM by Microp
Australia Forum Administrator #29

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.

USA #30
On the thread "Compiling under Cygnus", I found that all these changes were already made to the src, after I did tar and searched through it.

Yet I still get these crypt errors when I do a compile.

.
.
.
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
USA #31
I've done it!

I've compiled Smuag.

Sat Mar 30 21:54:32 2002 :: (Name Not Set) ready at address comp01 on port 4000

I connected fine using Lordrom | win95, through MUSHClient.

One final question though, in the makefile,
does "Uncomment" mean to do this..


#Uncomment the line below if you are getting undefined re_exec errors
NEED_REG =

#Uncomment the line below if you are getting undefined crypt errors
NEED_CRYPT =


or this..


#Uncomment the line below if you are getting undefined re_exec errors


#Uncomment the line below if you are getting undefined crypt errors


Or does it even matter?
Lastly "Makefile" vs "Makefile.Unix"? Differences?

Thanks for all your help Nick.
Amended on Sun 31 Mar 2002 03:07 AM by Microp
Australia Forum Administrator #32
The make file had this in it ...


#Uncomment the line below if you are getting undefined re_exec errors
#NEED_REG = -lgnuregex

#Uncomment the line below if you are getting undefined crypt errors
#NEED_CRYPT = -lcrypt


To "uncomment" the lines means to take out the comment character (#), so they would become ...


#Uncomment the line below if you are getting undefined re_exec errors
NEED_REG = -lgnuregex

#Uncomment the line below if you are getting undefined crypt errors
NEED_CRYPT = -lcrypt
#33
Hi,

I am new to this. Can any one tell me how to install "Man Program" in Cygwin. I mean, is there any download available.

I am getting "Command Not Found error" for almost all the commands like man, ls, cygcheck -s, ssh etc....

Can anyone help me in installing all the patches and tell me where all these are available to install them in Cygwin.

Please help me soon............

Thanks in advance to all of you....

Australia Forum Administrator #34
Did you follow the instructions on this page?

http://www.gammon.com.au/smaug/installingcygwin.htm