Solved

problem compiling Count 2.3 on unix

Posted on 1997-09-17
4
462 Views
Last Modified: 2013-12-25
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!
0
Comment
Question by:njacques
  • 2
4 Comments
 
LVL 1

Accepted Solution

by:
froderik earned 100 total points
ID: 1830321
Your install program probably is a shellscript and when you run it Unix tries to find the appropriate shell interpreter in /bin. (Note that the leading / indicates the root directory on Unix so you are not in your own directory.) The problem seems to be that the script interpreter named sh is absent. There might be other script interpreters on your system that can understand your install script as well. Korn shell (ksh) is a fair guess. Look in the /bin directory. Anything ending with sh (>ls *sh) probably is a shell. Then you can start the shell by writing the name at the prompt and retry running your program.

If this doesn't work perhaps you can tell me what UNIX system you are using?

Regards,

Fredrik Rubensson
0
 

Author Comment

by:njacques
ID: 1830322
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?

0
 
LVL 1

Expert Comment

by:froderik
ID: 1830323
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.
0
 

Expert Comment

by:aurelio
ID: 1830324
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!
0

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

It is a general practice to get rid of old user profiles on a computer  in a LAN environment. As I have been working with a company in a LAN environment where users move from one place to some other place at times. This will make many user profil…
Active Directory replication delay is the cause to many problems.  Here is a super easy script to force Active Directory replication to all sites with by using an elevated PowerShell command prompt, and a tool to verify your changes.
Learn the basics of lists in Python. Lists, as their name suggests, are a means for ordering and storing values. : Lists are declared using brackets; for example: t = [1, 2, 3]: Lists may contain a mix of data types; for example: t = ['string', 1, T…
The viewer will learn how to count occurrences of each item in an array.

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question