LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   install.sh (https://www.linuxquestions.org/questions/linux-newbie-8/install-sh-324163/)

newbe1 05-16-2005 05:39 PM

install.sh
 
im completly new to using linux (madrake 9.2) and i just downloaded a game of the net and i have no idea how to install it, plz someone walk me threw it (form the gnome desktop. Thx a lot for any help

mjrich 05-16-2005 06:07 PM

You'll have to give a bit more info if you want some help ;)

What format is the file in, for starters. A tarball that you've since extracted and found a file called install.sh ?

Cheers,

mj

newbe1 05-16-2005 06:18 PM

i did extract it from a "tarball" and when i click on it, it just opens it up in a text reader and im clueless as of what to do next. What else do you want to know?

mjrich 05-16-2005 06:39 PM

Best to do it in a shell (terminal, konsole, gterm etc. etc.). First see if there is a README or INSTALL file, and read them -- they'll usually give pretty clear indications on how to install the program. There may be a configure, make, make install sequence you need to follow if it is pure source code. Otherwise, read through the install.sh file and attempt to gauge what it's going to do (you don't want anything unexpected happening, believe me), then
Code:

chmod u+x install.sh
./install.sh

Cheers,

mj

newbe1 05-16-2005 07:02 PM

i click on install-sh, and it askes me to open in a termonal or not, when i do it opens for just a second then closes itself , wtf?

mjrich 05-16-2005 07:05 PM

No, don't click on the file.

Open a terminal (any one will do) and then cd to the directory containing the install.sh file. Then type the commands above.

Cheers,

mj

newbe1 05-16-2005 07:23 PM

Code:

[ian@localhost ian]$ cd /home
[ian@localhost home]$
[ian@localhost home]$ chmod u+x install.sh
chmod: failed to get attributes of `install.sh': No such file or directory
[ian@localhost home]$ ./install.sh
bash: ./install.sh: No such file or directory

What am i doing wrong?

mjrich 05-16-2005 07:28 PM

You're probably in the wrong directory. What is the output of
Code:

ls -lh

newbe1 05-16-2005 07:30 PM

Code:

[ian@localhost ian]$ ls -lh
total 4.5M
drwxrwxr-x    4 ian      ian          4.0K Apr 11  2002 bumprace-1.45/
-rw-rw-r--    1 ian      ian            1 May 16 19:53 confdefs.h
-rw-rw-r--    1 ian      ian            0 May 16 17:57 config.cache
-rw-rw-r--    1 ian      ian          240 May 16 19:53 config.log
drwxrwxr-x    6 ian      ian          4.0K May 16 20:17 Desktop/
drwxr-xr-x    2 ian      ian          4.0K May 12 17:08 Documents/
drwx------    7 ian      ian          4.0K May 16 18:06 evolution/
-rw-rw-r--    1 ian      games        901K May 16 18:54 screenshot1.bmp
-rw-rw-r--    1 ian      games        901K May 16 18:54 screenshot2.bmp
-rw-rw-r--    1 ian      games        901K May 16 19:43 screenshot3.bmp
-rw-rw-r--    1 ian      games        901K May 16 19:44 screenshot4.bmp
-rw-rw-r--    1 ian      games        901K May 16 19:44 screenshot5.bmp
drwx------    6 ian      ian          4.0K May 16 20:17 tmp/
[ian@localhost ian]$


mjrich 05-16-2005 07:33 PM

Presumably you're installing something called Bumprace. If so, then
Code:

cd bumprace-1.45
chmod u+x install.sh
./install.sh

mj

newbe1 05-16-2005 07:39 PM

Code:

[ian@localhost ian]$ cd bumprace-1.45
[ian@localhost bumprace-1.45]$ chmod u+x install.sh
chmod: failed to get attributes of `install.sh': No such file or directory
[ian@localhost bumprace-1.45]$ ./install.sh
bash: ./install.sh: No such file or directory

:confused:

mjrich 05-16-2005 07:44 PM

Code:

cd ~
cd bumprace-1.45
ls -lh

Where did you open up the install.sh file from before -- a subdirectory of bumprace, temp, or somewhere else ?

newbe1 05-16-2005 07:49 PM

Code:

total 252K
-rw-r--r--    1 ian      ian          6.1K Nov  2  2001 acinclude.m4
-rw-r--r--    1 ian      ian          9.7K Apr 11  2002 aclocal.m4
-rw-r--r--    1 ian      ian          1.2K Sep 17  2001 AUTHORS
-rw-r--r--    2 ian      ian          7.5K Apr 11  2002 ChangeLog
-rw-r--r--    1 ian      ian          31K Jan 19  2000 config.guess
-rw-r--r--    1 ian      ian          24K Jan 19  2000 config.sub
-rwxr-xr-x    1 ian      ian          65K Apr 11  2002 configure*
-rw-r--r--    1 ian      ian          1.8K Apr 11  2002 configure.in
-rw-r--r--    1 ian      ian          18K May  1  1999 COPYING
drwxrwxr-x    4 ian      ian          4.0K Apr 11  2002 data/
-rw-r--r--    1 ian      ian          788 Apr 11  2001 FAQ
-rw-r--r--    1 ian      ian          7.7K Aug 20  1999 INSTALL
-rwxr-xr-x    1 ian      ian          5.5K Oct 21  1999 install-sh*
-rw-r--r--    1 ian      ian            70 Feb 26  2000 Makefile.am
-rw-r--r--    1 ian      ian          9.7K Apr 11  2002 Makefile.in
-rwxr-xr-x    1 ian      ian          6.2K Nov 18  1999 missing*
-rwxr-xr-x    1 ian      ian          726 Nov 18  1999 mkinstalldirs*
-rw-r--r--    2 ian      ian          7.5K Apr 11  2002 NEWS
-rw-r--r--    1 ian      ian          1.6K Apr 11  2001 README
drwxrwxr-x    2 ian      ian          4.0K Apr 11  2002 src/

no diea :S

mjrich 05-16-2005 07:52 PM

Ok, so it looks like it's an ordinary source package. Read the README, FAQ and INSTALL files, then post back if you have any questions. You'll probably have to run something like configure, make, make install.

Good luck !

mj

newbe1 05-16-2005 08:00 PM

Code:

[ian@localhost bumprace-1.45]$ ls -lh
total 260K
-rw-r--r--    1 ian      ian          6.1K Nov  2  2001 acinclude.m4
-rw-r--r--    1 ian      ian          9.7K Apr 11  2002 aclocal.m4
-rw-r--r--    1 ian      ian          1.2K Sep 17  2001 AUTHORS
-rw-r--r--    2 ian      ian          7.5K Apr 11  2002 ChangeLog
-rw-r--r--    1 ian      ian            51 May 16 20:57 confdefs.h
-rw-r--r--    1 ian      ian            0 May 16 20:57 config.cache
-rw-r--r--    1 ian      ian          31K Jan 19  2000 config.guess
-rw-r--r--    1 ian      ian          661 May 16 20:57 config.log
-rw-r--r--    1 ian      ian          24K Jan 19  2000 config.sub
-rwxr-xr-x    1 ian      ian          65K Apr 11  2002 configure*
-rw-r--r--    1 ian      ian          1.8K Apr 11  2002 configure.in
-rw-r--r--    1 ian      ian          18K May  1  1999 COPYING
drwxrwxr-x    4 ian      ian          4.0K Apr 11  2002 data/
-rw-r--r--    1 ian      ian          788 Apr 11  2001 FAQ
-rw-r--r--    1 ian      ian          7.7K Aug 20  1999 INSTALL
-rwxr-xr-x    1 ian      ian          5.5K Oct 21  1999 install-sh*
-rw-r--r--    1 ian      ian            70 Feb 26  2000 Makefile.am
-rw-r--r--    1 ian      ian          9.7K Apr 11  2002 Makefile.in
-rwxr-xr-x    1 ian      ian          6.2K Nov 18  1999 missing*
-rwxr-xr-x    1 ian      ian          726 Nov 18  1999 mkinstalldirs*
-rw-r--r--    2 ian      ian          7.5K Apr 11  2002 NEWS
-rw-r--r--    1 ian      ian          1.6K Apr 11  2001 README
drwxrwxr-x    2 ian      ian          4.0K Apr 11  2002 src/
[ian@localhost bumprace-1.45]$ make
make: *** No targets specified and no makefile found.  Stop.

it tells me to enter "make" and that hapens


All times are GMT -5. The time now is 06:20 AM.