LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 02-12-2007, 05:34 AM   #1
izquierdista
Member
 
Registered: Mar 2005
Distribution: Ubuntu
Posts: 344

Rep: Reputation: 30
how to install a program using an .sh file


Hello I downloaded a program for linux but which was packaged as an .sh file. I dont have any experience using these files and I would like to know how someone could tell me how I can install this program.

for your reference this is the program that I downloaded: http://www.sourcextreme.org/index.php/DHWPageViewer
 
Old 02-12-2007, 05:49 AM   #2
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware 14.2
Posts: 2,815
Blog Entries: 1

Rep: Reputation: 261Reputation: 261Reputation: 261
Code:
./nameofprogram.sh
 
Old 02-12-2007, 11:40 AM   #3
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
Another way is to do
Code:
$sh somefile.sh
 
Old 02-12-2007, 03:07 PM   #4
izquierdista
Member
 
Registered: Mar 2005
Distribution: Ubuntu
Posts: 344

Original Poster
Rep: Reputation: 30
I tried what you told me and I got the following error message:




Code:
linux:/home/chacmool # ./DHWPageViewer.sh
which: no uudecode in (/usr/sbin:/bin:/usr/bin:/sbin:/usr/X11R6/bin)
./DHWPageViewer.sh: line 4: kdialog: command not found
linux:/home/chacmool #
 
Old 02-12-2007, 03:11 PM   #5
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
It seems like the script is looking for the "kdialog" command and it can't find it in your PATH. Kdialog is provided by KDE, so do you have KDE installed?
 
Old 02-12-2007, 07:02 PM   #6
izquierdista
Member
 
Registered: Mar 2005
Distribution: Ubuntu
Posts: 344

Original Poster
Rep: Reputation: 30
Ok I think I resolved the missing uudecode error message by installing the sharutils package which I got off the net.

Now I have a question about the installation itself,

when I put the command ./DHWPageViewer.sh

I got a prompt asking me to choose an install directory.

which folder do you recommend I choose?? or is the one where most people install programs in?

thanks,
 
Old 02-12-2007, 09:04 PM   #7
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware 14.2
Posts: 2,815
Blog Entries: 1

Rep: Reputation: 261Reputation: 261Reputation: 261
Is this a desktop PC or laptop PC you're using at home? Just put it in /usr. If you want it to be a little easier to uninstall if you don't like it, put it in /opt/DHWPGV, add the bin directory to your PATH and put the lib path in your ld.so.conf. Other options would be /usr/local or your home directory.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Trying to install program; it's a .run file? Perquisitor Linux - Newbie 1 08-09-2006 05:54 PM
How to install a program that comes as a .i686 file? There's no 'how to install' file TrulyTessa Linux - Newbie 3 06-13-2006 06:17 PM
where to get a file share program and how to install it????? travis93635 Mandriva 7 06-08-2006 01:34 AM
Text File to Audio File Program ? rvijay General 5 04-10-2006 03:50 PM
error while trying to install program: "X11/Xlib.h: No such file or directory" nate1 Linux - Newbie 3 05-21-2004 08:08 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 04:02 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration