LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices



Reply
 
Search this Thread
Old 03-01-2010, 04:32 AM   #1
DJBruteForce
LQ Newbie
 
Registered: Mar 2010
Posts: 2

Rep: Reputation: 0
Windows "Linux Script" Compiler


Hi there, I'm new to linux and the forum here. I'm a c#/sap developer. I'm trying to figure out if it's possible to test linux scripts in widnows? like with a compiler or something. I'm learning the script and don't want to install the o/s just for that.

Thanks,
DJ
 
Old 03-01-2010, 05:12 AM   #2
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware & Slackware64 14.1
Posts: 7,140
Blog Entries: 52

Rep: Reputation: Disabled
Do you mean shell scripts, for bash? Yeah, install cygwin.
 
Old 03-01-2010, 06:37 AM   #3
neonsignal
Senior Member
 
Registered: Jan 2005
Location: Melbourne, Australia
Distribution: Debian Wheezy (Fluxbox WM)
Posts: 1,368
Blog Entries: 52

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
As brianL says, cygwin is the best option.

There was a direct port of bash to Windows some time ago, but it is not up to date.

Another way would be to install something like CoLinux, which will run Linux natively under Windows (ie, without requiring a virtual machine or dual boot). Or even just run a live Linux CD.

Last edited by neonsignal; 03-01-2010 at 06:39 AM.
 
Old 03-01-2010, 07:02 AM   #4
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,049

Rep: Reputation: 378Reputation: 378Reputation: 378Reputation: 378
I suggest either cygwin or linux inside an VM like vmware or virtualbox.

It depends on what do you mean by "script". If you mean "shell script" then you are going to be relying in a shell to run it, hence you need a way to make the shell and the regular userland tools available. Shell scripts usually call external tools, no amount of compiling can sort that out because those external tools are not present in a regular Windows installation. You need to -somehow- emulate a posix environment with at least the basic tools that most shell scripts will need.

You can as well use something like putty to remotely login into a linux or unix machine, assuming you can get access to a shell account somewhere.
 
Old 03-02-2010, 02:21 AM   #5
DJBruteForce
LQ Newbie
 
Registered: Mar 2010
Posts: 2

Original Poster
Rep: Reputation: 0
Thanks guys, I've installed Cygwin and it seems to have most of the basic commands. Missing "vi" though
 
Old 03-02-2010, 03:23 AM   #6
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,049

Rep: Reputation: 378Reputation: 378Reputation: 378Reputation: 378
You should be able to install vim on cygwin. I have no first hand experience with it, though.
 
Old 03-02-2010, 04:11 AM   #7
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware & Slackware64 14.1
Posts: 7,140
Blog Entries: 52

Rep: Reputation: Disabled
Yes, you can get Vim, but not vi. Run setup.exe again, scroll down to Editors, you'll find it there.
 
  


Reply

Tags
compiler, linux, script, windows


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
bash script: using "select" to show multi-word options? (like "option 1"/"o zidane_tribal Programming 6 03-21-2013 11:35 AM
automount 5.0.3 with auto.smb script yields "key "<name>" not found in map" rbergen Linux - Software 0 01-01-2010 01:27 PM
Can't install "glibmm" library. "configure" script can't find "sigc++-2.0&q kornerr Linux - General 4 05-10-2005 03:32 PM
"cannot exec `as': ..." AND "C compiler cannot create ..." pr3st0 Linux - Software 0 10-15-2004 01:42 PM


All times are GMT -5. The time now is 04:13 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration