Thread: Can't run Bash!

  1. #1
    Unregistered User Yarin's Avatar
    Join Date
    Jul 2007
    Posts
    2,158

    Can't run Bash!

    I'm trying to compile linux binaries on Windows. To do this, I've downloaded and installed Cygwin (along with it's GCC packages).

    But upon executing it, I'm confronted with Bash:
    Quote Originally Posted by Command Prompt
    bash-3.2$ _
    Even though I've ran a linux prompt before, I have not a clue what to do next. It doesn't recognize the command su, and it doesn't begin with x@x: like I remember either.

    Could someone please explain to me how to navigate my "programs" (located in /bin)?

    Thanks

  2. #2
    Officially An Architect brewbuck's Avatar
    Join Date
    Mar 2007
    Location
    Portland, OR
    Posts
    7,396
    Quote Originally Posted by Yarin View Post
    Even though I've ran a linux prompt before, I have not a clue what to do next. It doesn't recognize the command su, and it doesn't begin with x@x: like I remember either.
    Why do you need to 'su'? To get a prompt more like the one you want, try:

    Code:
    export PS1='\u@\h:\$ '
    Other than that, I'm not sure what your question is... Pretend you're using a UNIX system and go from there.
    Code:
    //try
    //{
    	if (a) do { f( b); } while(1);
    	else   do { f(!b); } while(1);
    //}

  3. #3
    Unregistered User Yarin's Avatar
    Join Date
    Jul 2007
    Posts
    2,158
    I see, I wasn't aware that they were actually the same thing.
    I wasn't needing to su; I just tried to out of desperation of finding a command that worked - in fact, it still doesn't work.
    I've found some Bash tuts online now.
    Thanks

  4. #4
    Officially An Architect brewbuck's Avatar
    Join Date
    Mar 2007
    Location
    Portland, OR
    Posts
    7,396
    Quote Originally Posted by Yarin View Post
    I see, I wasn't aware that they were actually the same thing.
    I wasn't needing to su; I just tried to out of desperation of finding a command that worked - in fact, it still doesn't work.
    I've found some Bash tuts online now.
    Thanks
    I'm not sure a bash tutorial is quite what you need... The prompt itself is easy enough to use, it's the huge variety of commands that take some time to get familiar with.

    If you just want to build Linux software, you should be able to follow the installation directions as if you were on a Linux system.
    Code:
    //try
    //{
    	if (a) do { f( b); } while(1);
    	else   do { f(!b); } while(1);
    //}

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. calculating the mode
    By bigggame in forum C Programming
    Replies: 10
    Last Post: 06-13-2006, 03:04 AM
  2. Replies: 6
    Last Post: 06-08-2006, 04:11 PM
  3. How I can Run exe file in C++
    By palang in forum C++ Programming
    Replies: 2
    Last Post: 05-10-2006, 11:55 AM
  4. MSVC: run w/o debugger vs run w/ debuger
    By skorman00 in forum C++ Programming
    Replies: 2
    Last Post: 01-24-2006, 09:49 PM
  5. Replies: 2
    Last Post: 10-29-2002, 04:56 PM