Page 1 of 1

How do you run a .sh file with xampp?

PostPosted: 06. March 2013 13:59
by johnbanny
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

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

PostPosted: 06. March 2013 14:24
by JonB
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

:)

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

PostPosted: 06. March 2013 15:10
by johnbanny
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

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

PostPosted: 06. March 2013 22:18
by JonB
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
:)

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

PostPosted: 07. March 2013 11:54
by Nobbie
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