Can't run Bash!

This is a discussion on Can't run Bash! within the Tech Board forums, part of the Community Boards category; I'm trying to compile linux binaries on Windows. To do this, I've downloaded and installed Cygwin (along with it's GCC ...

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

    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
    A class that doesn't overload all operators just isn't finished yet. -- SmugCeePlusPlusWeenie
    A year spent in artificial intelligence is enough to make one believe in God. -- Alan J. Perlis

  2. #2
    Captain Crash brewbuck's Avatar
    Join Date
    Mar 2007
    Location
    Portland, OR
    Posts
    7,239
    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
    1,605
    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
    A class that doesn't overload all operators just isn't finished yet. -- SmugCeePlusPlusWeenie
    A year spent in artificial intelligence is enough to make one believe in God. -- Alan J. Perlis

  4. #4
    Captain Crash brewbuck's Avatar
    Join Date
    Mar 2007
    Location
    Portland, OR
    Posts
    7,239
    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, 08:49 PM
  5. Replies: 2
    Last Post: 10-29-2002, 03:56 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21