Link to home
Start Free TrialLog in
Avatar of njacques
njacques

asked on

problem compiling Count 2.3 on unix

I have decompress the counter's archive onto my servers disk with all the folders... now when i try to run the setup/install file, i get this:
----
Script interpreter "/bin/sh" not found
Script interpreter link resolves to "/usr/bin/sh"
sh: Count-install: not found
--------
i do not know much in Unix, but im ok in everything else, so there must be something that i do wrong...
or it is the folders that are not ok, the only thing i done is to normalise access after uploading...

HELP ME PLEASE!
ASKER CERTIFIED SOLUTION
Avatar of froderik
froderik

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of njacques
njacques

ASKER

i'll check that out! the server is a WN server...

the webmaster told me to check www.uqar.uquebec.ca/docs

those docs are the Documentation for the WN server so it must be the name of the unix they use..

is it it?

I have never heard of it but I am no UNIX wizard after all. (Writin this on Windows NT...) Did you find any shells in /bin. If you are using a strange system they might be located elsewhere. There are two ways to find out.

1. Look in your PATH system variable. It specifies where UNIX looks for executable files. The usual way to see tha value of path is to write set at the prompt. Then you can look in the directories specified for any shells.

2. Try to tun sh from the command line. If the system tells you that there is no such program it probably is correct or the system is set up very strange.

If you eventually find a shell (sh) you probably can edit the install script by hand using emacs or vi. (Or download it to your local mahine.) Change the call/s to /bin/sh to point to whatever you found.

I checked the documentation referenced. WN seems to be a HTTP server probably running on a UNIX system. There were nothing about shells though. If the above doesn't work either you should probably ask the people who runs the system for help.

Hope this help.
Usually , in UNIX the /bin directory is linked to /usr/bin. Some shell scripts have their first line the hack #!/bin/sh which instructs to use the shell located in /bin.
I never have seen the shell in other place than /bin/sh ; i suggest you to try :
1 ) Find your shell's place ( typing in "type  sh" or "which sh").
2) Change #!/bin/sh accordingly in the scripts.
Or :
1) Link your shell to /bin/sh (root privileges) using the
command :
ln -s <path-to-your-shell-interp.> /bin/sh

The "Count-install" error seems to be :
1) Count-install is a shell function written in the script ; there is some problem with your interpreter.
or :
2) Count-install is another shell script , located out of the PATH
directories. In this case , include the path in the calling script , with something like :
PATH=$PATH:.: ; export PATH
Hope this help!