How do you run a .sh file with xampp?

Problems with the Windows version of XAMPP, questions, comments, and anything related.

How do you run a .sh file with xampp?

Postby johnbanny » 06. March 2013 13:59

Hi, bit of a newb question, but here goes.

I have xampp installed on windows and works great, but i am tring to install a program and the instructions are as follows:

● Unpack the ICEcat PIM package to the /home/gcc (or another preferred) folder.
● If your project home directory is different from the default /home/gcc, then include the
correct absolute path to the lib/ folder in www/, bin/ and data_export/ scripts.
● Run the ./ICEcatPIM_install Perl script to prepare the ICEcatPIM project for the first run.

So i have unpacked the package, but to htdocs as i normally to with installs.
I open up firefox, go to localhost/icecatpim (which is what i called the folder). Comes up with the avalable files.
Clicked on PIMInstall.sh and it just opens the document but does not run.
Same thing happens when i open via windows explorer etc.
I dont get how you run this file lol

Instructions via a form are as follows:

on Ubuntu after extracting the tar file I just run $ sudo ./PIMInstall.sh

I how do i do this but with xampp in windows?

Thanks for your help, dont really know what im doing with this one, and if you need any other info, let me know and ill do my best

John
johnbanny
 
Posts: 7
Joined: 26. February 2012 17:24
XAMPP Version: 5.6.3
Operating System: windows 7

Re: How do you run a .sh file with xampp?

Postby JonB » 06. March 2013 14:24

on Ubuntu after extracting the tar file I just run $ sudo ./PIMInstall.sh

I how do i do this but with xampp in windows?


Well - you sorta can't - those instructions are for a Linux environment.

You should ask the developers about deploying on Windows

:)
User avatar
JonB
AF Moderator
 
Posts: 3210
Joined: 12. April 2010 16:41
Location: Land of the Blazing Sun
XAMPP Version: 1.8.3-2
Operating System: Windows XP/7 - Fedora 15 1.7.7

Re: How do you run a .sh file with xampp?

Postby johnbanny » 06. March 2013 15:10

Hi,

Thanks for your reply, and sorry for the ignorance, but is there not a way to run a .sh file.
Baring in mind i dont even know what a .sh file is lol
But according to various instructions i have read they all say that you just run the script.
Is there not another way to run it.
Or is the answer still your answer, cant run on windows?

Thanks again
johnbanny
 
Posts: 7
Joined: 26. February 2012 17:24
XAMPP Version: 5.6.3
Operating System: windows 7

Re: How do you run a .sh file with xampp?

Postby JonB » 06. March 2013 22:18

Its a bash shell script - its full on Linux commands - they don't work on Windows.

http://en.wikipedia.org/wiki/Shell_script

http://en.wikipedia.org/wiki/Bash_(Unix_shell)

Again - go seek the authors of the script, we didn't write any of that stuff. Ask the developers of the script, do you have an install guideline for Apache on Windows?

OR Install a LInux desktop, (like Ubuntu or Fedora) then there is some chance it might work.

Good Luck
:)
User avatar
JonB
AF Moderator
 
Posts: 3210
Joined: 12. April 2010 16:41
Location: Land of the Blazing Sun
XAMPP Version: 1.8.3-2
Operating System: Windows XP/7 - Fedora 15 1.7.7

Re: How do you run a .sh file with xampp?

Postby Nobbie » 07. March 2013 11:54

A shell script *.sh is the same thing like a *.bat on Windows. It contains specific commands of the Operating System (in that case a UNIX/Linux OS).

There is a way to execute *.sh files in a Windows environment (as Windows cannot execute these files natively), but I cannot say if this solves your real problem (as this execution is only one step in a set of installation instructions which yields to a Linux Operating System):

You need to install the Cygwin Software (from the Cygwin Project), which contains a Linux Shell environment compiled for Windows. See http://www.cygwin.com/ for detailed information
Nobbie
 
Posts: 6771
Joined: 09. March 2008 13:04


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 71 guests