Solved

problem compiling Count 2.3 on unix

Posted on 1997-09-17
4
464 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

Recently I have been answering a lot of questions like this in IT forums that I frequent. The question posed is usually something along the lines of "We have software X installed and need to uninstall it for reason Y" or some other variant of the sa…
A quick Powershell script I wrote to find old program installations and check versions of a specific file across the network.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

734 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