LinuxQuestions.org
Visit Jeremy's Blog.
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: 342

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-current, Cross Linux from Scratch, Gentoo
Posts: 2,744
Blog Entries: 1

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

Rep: Reputation: 73
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: 342

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
Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 73
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: 342

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-current, Cross Linux from Scratch, Gentoo
Posts: 2,744
Blog Entries: 1

Rep: Reputation: 224Reputation: 224Reputation: 224
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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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


All times are GMT -5. The time now is 04:22 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration