LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 01-08-2010, 02:55 PM   #1
baronobeefdip
Senior Member
 
Registered: Jul 2009
Distribution: Debian Squeeze
Posts: 1,185

Rep: Reputation: 32
install.sh files how do i use them


i have downloaded a couple of programs and they usually came in .tar or some others format i know its an archive but included in it is a install.sh

and i know that those are archive files what do i do with them if extracting them and running the install.sh in a terminal won't do much


after i install a program this way where do i find the program in the compiter
 
Old 01-08-2010, 03:11 PM   #2
MensaWater
Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 6,007
Blog Entries: 5

Rep: Reputation: 782Reputation: 782Reputation: 782Reputation: 782Reputation: 782Reputation: 782Reputation: 782
Most of these bundles usually contain files like "README" or "readme.1st". You should look for these as they'll usually tell you exactly what steps to take.
 
Old 01-08-2010, 03:12 PM   #3
abefroman
Senior Member
 
Registered: Feb 2004
Location: Chicago
Distribution: CentOS
Posts: 1,257

Rep: Reputation: 53
After reading the Install or Readme, if it says to run install.sh you can run it like this:
Code:
./install.sh
 
Old 01-08-2010, 03:14 PM   #4
robertwolfe
Member
 
Registered: Apr 2005
Location: Grand Island, NY
Distribution: Ubuntu and Debian
Posts: 57

Rep: Reputation: 16
Quote:
Originally Posted by baronobeefdip View Post
i have downloaded a couple of programs and they usually came in .tar or some others format i know its an archive but included in it is a install.sh

and i know that those are archive files what do i do with them if extracting them and running the install.sh in a terminal won't do much


after i install a program this way where do i find the program in the compiter
It has been my experience that install.sh is executed when 'make install' is run and should not be run by itself.

The usual steps to following when installing a program (namely from source), is:

* Run the applications 'configure' script.
* Run 'make' to build the application binaries.
* Run 'make install' to install the application binaries.

If there is no 'configure' script/file, you may need to run 'autoconf' to have one generated for you.

Hope this helps.
 
Old 01-08-2010, 03:14 PM   #5
MensaWater
Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 6,007
Blog Entries: 5

Rep: Reputation: 782Reputation: 782Reputation: 782Reputation: 782Reputation: 782Reputation: 782Reputation: 782
By the way - since install.sh is a shell script you can simply read it to determine what it does - look for "mv" and "cp" commands within it to see if it is moving or copying files to a certain l
 
Old 01-15-2010, 03:06 PM   #6
baronobeefdip
Senior Member
 
Registered: Jul 2009
Distribution: Debian Squeeze
Posts: 1,185

Original Poster
Rep: Reputation: 32
all of them came in tugzip or tar files was i not supposed to extract them or leave it archived i couldn't find anything on it on the wiki
 
Old 01-15-2010, 04:43 PM   #7
TB0ne
Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 14,589

Rep: Reputation: 2558Reputation: 2558Reputation: 2558Reputation: 2558Reputation: 2558Reputation: 2558Reputation: 2558Reputation: 2558Reputation: 2558Reputation: 2558Reputation: 2558
Quote:
Originally Posted by baronobeefdip View Post
all of them came in tugzip or tar files was i not supposed to extract them or leave it archived i couldn't find anything on it on the wiki
What "wiki"?? Did you read the posts above?

Every program will require different things, and install to different places. Extract the files, and read the instructions that came with it. Sometimes, you'll need the install.sh. Other times, you need to run configure, or just type in make. Again, read the instructions that come with the program you downloaded. Also, chances are good there will be instructions on the website where you downloaded the program FROM, that will tell you how to install it.
 
Old 01-15-2010, 09:34 PM   #8
cantab
Member
 
Registered: Oct 2009
Location: England
Distribution: *buntu, Vector
Posts: 499

Rep: Reputation: 102Reputation: 102
There should normally be files like 'readme' or 'install' that tell you what you need to do. Failing that, the website you downloaded from should have instructions.

If you can find no installation instructions, look for a file named "configure". If it is present, then the following procedure will usually work:

./configure
sets everything up. This will alert you to dependencies you don't have - search for them in your package manager and install them. You will need the '-dev' packages as well as the regular ones.

make
compiles the program

make install
run as root, copies the compiled program files to locations on the system. This is often optional.
 
Old 01-18-2010, 03:45 PM   #9
baronobeefdip
Senior Member
 
Registered: Jul 2009
Distribution: Debian Squeeze
Posts: 1,185

Original Poster
Rep: Reputation: 32
i finally figured it out

i downloaded the archive
extracted it somewhere on the desktop

opened a terminal and changed the directory to the file that was created when extracting the archive

and ran the following command

Code:
# sudo ./install.sh

and it did the trick but how do i know what command to enter when it finishes (for example i downloaded and install pspvc in ubuntu but it gave me instructions on what command to enter in the terminal to run the program, it was an easy process but when i install another program how will i know what command to enter

is the desktop directory supposed to be case sensitive
because when i was changing the directory in the terminal it wouldn't let me when the d in desktop was lowercase but when i capitalized it, it did the trick

Last edited by baronobeefdip; 01-18-2010 at 03:48 PM.
 
Old 01-18-2010, 03:48 PM   #10
TB0ne
Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 14,589

Rep: Reputation: 2558Reputation: 2558Reputation: 2558Reputation: 2558Reputation: 2558Reputation: 2558Reputation: 2558Reputation: 2558Reputation: 2558Reputation: 2558Reputation: 2558
Quote:
Originally Posted by baronobeefdip View Post
i finally figured it out

i downloaded the archive
extracted it somewhere on the desktop

opened a terminal and changed the directory to the file that was created when extracting the archive

and ran the following command

Code:
# sudo ./install.sh

and it did the trick but how do i know what command to enter when it finishes (for examply i downloaded and install pspvc in ubuntu but it game me instaructions on what command to enter in the terminal to run the program, it was an easy process but when i install another program how will i know what command to enter
You read the instructions that come with the programs you download
 
Old 01-18-2010, 04:25 PM   #11
John VV
Guru
 
Registered: Aug 2005
Posts: 12,906

Rep: Reputation: 1713Reputation: 1713Reputation: 1713Reputation: 1713Reputation: 1713Reputation: 1713Reputation: 1713Reputation: 1713Reputation: 1713Reputation: 1713Reputation: 1713
Quote:

is the desktop directory supposed to be case sensitive
because when i was changing the directory in the terminal it wouldn't let me when the d in desktop was lowercase but when i capitalized it, it did the trick
Linux IS NOT WINDOWS

in linux EVERYTHING in cap sensitive

also IT IS NOT advised to build software from YOUR DESKTOP

is is also nor advised to SAVE things to your desktop -- that is a odd MS Windows default --


it would HELP very much if we new WHAT the programs are and where you got them from

PLEASE include a link TO WHERE YOU GOT THEM FROM
 
Old 01-18-2010, 07:59 PM   #12
baronobeefdip
Senior Member
 
Registered: Jul 2009
Distribution: Debian Squeeze
Posts: 1,185

Original Poster
Rep: Reputation: 32
well i tested it out with pspvc (it was on the buuntu website so i trut it) and i did the process as i decribed above and it worked it just shows a terminal whenever i execute the program) and i did download the file to the desktop and it worked like normal i deteted the setup files when i was done, and it worked 100%
 
Old 01-21-2010, 02:40 PM   #13
baronobeefdip
Senior Member
 
Registered: Jul 2009
Distribution: Debian Squeeze
Posts: 1,185

Original Poster
Rep: Reputation: 32
on a related note i hear that you can install software from source by using make or make install i have been tring to install software from source (i perform tasks based on what i read in the readme file) and i found that some use cmake how do you execute these commands
 
Old 01-21-2010, 03:33 PM   #14
TB0ne
Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 14,589

Rep: Reputation: 2558Reputation: 2558Reputation: 2558Reputation: 2558Reputation: 2558Reputation: 2558Reputation: 2558Reputation: 2558Reputation: 2558Reputation: 2558Reputation: 2558
Quote:
Originally Posted by baronobeefdip View Post
on a related note i hear that you can install software from source by using make or make install i have been tring to install software from source (i perform tasks based on what i read in the readme file) and i found that some use cmake how do you execute these commands
Again:
YOU READ THE INSTRUCTIONS THAT COME WITH EACH PROGRAM

Every program is different, and they all have different installation instructions. Asking the same question over and over, won't get you a different answer.

Normally, there's a text file that comes with it. If you read the instructions, or looked up the man page on cmake, you'd find it's something along the lines of "cmake <whatever the textfile name is>". There may be more steps after that, maybe not. Maybe some options, maybe not. READ THE INSTRUCTIONS THAT COME WITH EACH PROGRAM.
 
Old 03-13-2010, 01:08 PM   #15
baronobeefdip
Senior Member
 
Registered: Jul 2009
Distribution: Debian Squeeze
Posts: 1,185

Original Poster
Rep: Reputation: 32
what about the ones that say install-sh i did the install.sh command successfully but the install-sh one is making my head spin
 
  


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
old files from earlier install exist on new install of FC3 dr_zayus69 Linux - Hardware 0 01-08-2005 06:19 AM
How can I install Bin Files? or tg files? GeKsKe-XP Linux - Software 3 03-23-2004 03:54 PM
How do you install tar/gz files, and rpm files? Fear58 Linux - Software 6 02-14-2004 04:35 PM
cant install .bin files, tar.gz files or anyother format!!! madskillz Linux - Newbie 4 10-05-2003 10:28 AM
newbie, RH9: how to install Xinet and from where do I install and load files? kbusche Linux - Newbie 2 09-22-2003 01:33 AM


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

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