LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-06-2004, 09:46 AM   #1
Focalpoint
LQ Newbie
 
Registered: Jul 2004
Distribution: Slackware 10
Posts: 20

Rep: Reputation: 0
Tarballs installing questions


Hello,

I've recently installed Slackware 10.0 and want to install some
software. Previously, I had Knoppix with it's 'apt-get' package
managemant.
Now, there are tarballs in Slack, so I have a simple question...
... I dowloaded some software and after decopressing it I usally
have two folders: "usr" and "bin". I found I can run program
directly from bin, however I'd like to ask what is "doinst.sh"
in "install" folder? I supoose it is intended to install application,
but how to run it?

Thanks in advance and greets,
 
Old 07-06-2004, 10:09 AM   #2
dopefish
Member
 
Registered: Nov 2003
Location: Northcliffe, WA
Distribution: Slackware 12.0
Posts: 481

Rep: Reputation: 30
./doinst.sh
or
sh doinst.sh

if that doesnt work try
chmod +x doinst.sh
./doinst.sh
 
Old 07-06-2004, 10:15 AM   #3
Focalpoint
LQ Newbie
 
Registered: Jul 2004
Distribution: Slackware 10
Posts: 20

Original Poster
Rep: Reputation: 0
Thanks o lot :-)
"./" tells bash to exectute it as "sh" am I right?
 
Old 07-06-2004, 10:16 AM   #4
Focalpoint
LQ Newbie
 
Registered: Jul 2004
Distribution: Slackware 10
Posts: 20

Original Poster
Rep: Reputation: 0
If I install any softare as a root will other user see this software or shall I simply
istall it as a user??
 
Old 07-06-2004, 10:23 AM   #5
lyceum
Member
 
Registered: Aug 2003
Location: N.C.
Distribution: rh9, fc1, slack 9.1, 10
Posts: 229

Rep: Reputation: 30
it may seem overly obvious, but i'm going to say it anyway...

when issuing the ./doinstall.sh command, make sure that your current working directory is the same as the one that contains this script. the ./ is telling the system "in this directory." you could possibly run a script that you don't intend if you were to give this command from another directory (assuming that other directory contained a file named doinst.sh).

this may not seem like a big issue, since you may not often find scripts named doinst.sh, but consider giving a ./configure command from the wrong directory. configure scripts are everywhere. you can check your working directory with the command pwd.
 
Old 07-06-2004, 10:27 AM   #6
lyceum
Member
 
Registered: Aug 2003
Location: N.C.
Distribution: rh9, fc1, slack 9.1, 10
Posts: 229

Rep: Reputation: 30
as stated above, the ./ tells the system that the executable script is in this current working directory, so execute it. when you normally give a command the system checks the directories in your $PATH environment variable for that executable. if it isn't found in those directories, then you get the "command not found" error. you can find out what directories are in your PATH by giving the command
Code:
echo $PATH
hope this helps.
 
Old 07-06-2004, 11:10 AM   #7
Focalpoint
LQ Newbie
 
Registered: Jul 2004
Distribution: Slackware 10
Posts: 20

Original Poster
Rep: Reputation: 0
Hello,
well, I got your point. And yes, I had to use chmod +x (i guess it gives permission to
execute...).
But I tried it on many install scripts and I am gettin messages like "Broken symbolic link
to..."

What could be the problem?
 
Old 07-06-2004, 08:51 PM   #8
dopefish
Member
 
Registered: Nov 2003
Location: Northcliffe, WA
Distribution: Slackware 12.0
Posts: 481

Rep: Reputation: 30
A symbolic link is like a windows shortcut, type
ls -l <filename>
to show where abouts a file is supposed to be linked to.
./ tells bash to execute the file from the current directory.
If the tarball has a /usr and /bin directory it is possibly a slackware package
in which case you can use installpkg as root to install it.
 
  


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
installing Gentoo. need help with tarballs PLLeeaassee! randell6564 Linux - Software 3 11-24-2005 04:47 PM
Installing tarballs with dir structure smudge|lala Linux - Software 4 09-15-2005 04:25 PM
Need help installing tarballs nationofcass Linux - Software 2 02-15-2005 11:13 PM
Installing software from tarballs NomadABC Linux - Software 4 02-01-2005 03:11 PM
Very Simple Guide to Installing Tarballs little_penguin Linux - Software 1 11-16-2004 11:19 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:59 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration