Solved

problem compiling Count 2.3 on unix

Posted on 1997-09-17
4
459 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

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

If you get a (Blue Screen of Death), your system writes a small file called a minidump. Your first step is to make certain your computer is setup to record memory dumps. Right click My Computer, choose properties. Click on the advanced tab, an…
In this tutorial I will show you how to provide a dynamic RTF document on your website generated with data from your database. For this tutorial you will need Microsoft Word or WordPad, WhizBase and Microsoft Access. In this tutorial I will show …
Learn the basics of while and for loops in Python.  while loops are used for testing while, or until, a condition is met: The structure of a while loop is as follows:     while <condition>:         do something         repeate: The break statement m…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

759 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now