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
➜ Compiling the server
➜ Cygwin help
It is now over 60 days since the last post. This thread is closed.
Refresh page
Pages: 1 2
Posted by
| Whofoobar
(8 posts) Bio
|
Date
| Wed 27 Sep 2006 01:00 PM (UTC) |
Message
| i cant seem to get the ls command to work on Cygwin. i reinstalled it many many times, but it doesnt work and i cant find my start-up directory. | Top |
|
Posted by
| Zeno
USA (2,871 posts) Bio
|
Date
| Reply #1 on Wed 27 Sep 2006 01:16 PM (UTC) |
Message
| I using ls in the dir where all the bins are (such as ls). |
Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org | Top |
|
Posted by
| David Haley
USA (3,881 posts) Bio
|
Date
| Reply #2 on Wed 27 Sep 2006 03:49 PM (UTC) |
Message
| I don't think it's easily possible, really, to have a Cygwin install without 'ls'. Could you be more specific about what is broken with 'ls'? |
David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone
http://david.the-haleys.org | Top |
|
Posted by
| Whofoobar
(8 posts) Bio
|
Date
| Reply #3 on Wed 27 Sep 2006 06:06 PM (UTC) |
Message
| i mean that it doesnt recognize the command, even though it is in the bin folder | Top |
|
Posted by
| David Haley
USA (3,881 posts) Bio
|
Date
| Reply #4 on Wed 27 Sep 2006 06:48 PM (UTC) |
Message
| Like I said, it's almost impossible to break ls. Could you show us exactly what you are doing and what error message it gives you? |
David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone
http://david.the-haleys.org | Top |
|
Posted by
| Whofoobar
(8 posts) Bio
|
Date
| Reply #5 on Wed 27 Sep 2006 07:23 PM (UTC) |
Message
| all i am typing is ls, and it says bash: ls: command not found | Top |
|
Posted by
| Zeno
USA (2,871 posts) Bio
|
Date
| Reply #6 on Wed 27 Sep 2006 07:57 PM (UTC) |
Message
| If you're in bin, then using ls should work (if it's there). |
Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org | Top |
|
Posted by
| David Haley
USA (3,881 posts) Bio
|
Date
| Reply #7 on Wed 27 Sep 2006 08:13 PM (UTC) |
Message
| Or type /bin/ls from a Cygwin prompt.
It baffles me that you would not have ls unless you did something very strange when installing Cygwin. If you look in c:\cygwin\bin, do you see ls.exe in there? |
David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone
http://david.the-haleys.org | Top |
|
Posted by
| Zeno
USA (2,871 posts) Bio
|
Date
| Reply #8 on Wed 27 Sep 2006 08:39 PM (UTC) |
Message
| I think I've had this problem before (but running it bin worked fine), probably has to do with it not being correctly linked or something. Perhaps Cygwin is installed in a dir that has spaces. |
Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org | Top |
|
Posted by
| Whofoobar
(8 posts) Bio
|
Date
| Reply #9 on Wed 27 Sep 2006 08:44 PM (UTC) |
Message
| it is there, but it just wont work
| Top |
|
Posted by
| Whofoobar
(8 posts) Bio
|
Date
| Reply #10 on Wed 27 Sep 2006 08:46 PM (UTC) |
Message
| no spaces in directory either it is in C:\cygwin | Top |
|
Posted by
| Nick Gammon
Australia (23,158 posts) Bio
Forum Administrator |
Date
| Reply #11 on Wed 27 Sep 2006 08:48 PM (UTC) |
Message
| Sounds like you have a corrupted PATH environment variable. Look at this:
$ which ls
/usr/bin/ls
$ echo $PATH
/usr/local/bin:/usr/bin:/bin
First, my copy of ls is in /usr/bin/ls, not /bin, and my PATH variable has it in it.
Try typing 'echo $PATH' and see if the correct directories are in it. Also, as Ksilyan says, you should be able to invoke it directly, like this:
$ /usr/bin/ls
MudGameProgramming lua_example rom24.zip ... etc.
|
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|
Posted by
| Whofoobar
(8 posts) Bio
|
Date
| Reply #12 on Wed 27 Sep 2006 08:50 PM (UTC) |
Message
| im just gonna totally uninstall and reinstall | Top |
|
Posted by
| Zeno
USA (2,871 posts) Bio
|
Date
| Reply #13 on Wed 27 Sep 2006 08:58 PM (UTC) |
Message
| If it still doesn't work, then I'd suggest going to Cygwin's mailing list for help. |
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 27 Sep 2006 09:01 PM (UTC) |
Message
| Have you tried invoking it directly? It would help if you followed up on our suggestions like that so that we can narrow down the problem.
For instance, "it is there, but it just wont work" can mean at least two things:
1. it is located in the proper directory but typing "ls" doesn't work
2. typing /usr/bin/ls (or whatever -- wherever it's located) does not work either, which is more serious
If you uninstall I would recommend completely deleting your c:\cygwin directory before reinstalling. |
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.
44,326 views.
This is page 1, subject is 2 pages long: 1 2
It is now over 60 days since the last post. This thread is closed.
Refresh page
top