Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
09-18-2005, 06:23 AM
|
#1
|
LQ Newbie
Registered: Sep 2005
Distribution: RedHat 9.0
Posts: 8
Rep:
|
Really really newbie question about installing packages with tar.gz.
I just got RedHat9.0
I have read the README files of the packages, most of them say {Execute the installation program (./install)} but the thing is i do not know how i am supposed to do this.
I tried typing it on the navigation bar of the browser as so "/root/Downloads./install" and "/root/Downloads/./install" but both times i get error messages, "Couldn't find "/root/Downloads./oss-install". Please check the spelling and try again." and "Nautilus has no installed viewer capable of displaying "/root/Downloads/install"." respectively.
I tried downloading and installing the glibc libraries, but i already have them, and its the same thing. I'm pretty lost here...
|
|
|
09-18-2005, 06:28 AM
|
#2
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
1) do NOT use the root account to do things like this, that is NOT what it is for.
2) . means your current directory. as such ./install means "run the install script in the current directory" you needd to do this as your current directory should never be on your path, meaning you should only be able to run known installed programs in standard locations unless you explicitly say otherwise. so... you need to change to the directory and then run "./install" etc..
|
|
|
09-18-2005, 06:32 AM
|
#3
|
LQ Newbie
Registered: Sep 2005
Distribution: RedHat 9.0
Posts: 8
Original Poster
Rep:
|
What do you mean by change to the directory?
As you can see, i am really really really new to this...
EDIT: Okay, i should rephrase my question i guess. Where do i type in the codes? like
where does it go?
EDIT again: okay, found it. System Tools, Terminal
Last edited by Ardor; 09-18-2005 at 08:21 AM.
|
|
|
09-18-2005, 10:07 AM
|
#4
|
Member
Registered: Jul 2005
Posts: 142
Rep:
|
Quote:
What do you mean by change to the directory?
|
This question shows very well that your main need now is not to be in a hurry; otherwise you will face frustrations and even give up your system. Installing packages by your own (and even from *.tgz files) is not the best job to begin with; let packages be those installed automatically (for a wile) and chose some more encouraging jobs to deal with. You might play your existing applications for instance. What such applications do you have now? What do you know about your system?
|
|
|
09-18-2005, 10:23 AM
|
#5
|
Member
Registered: Oct 2003
Location: Canada
Distribution: ArchLinux && Slackware 10.1
Posts: 298
Rep:
|
While I agree that as a new user you should try to learn how things work, I also am a strong believer that in computer science you learn as you go... so I think it is a good thing to learn to install packages like tar, and tag.gz
So, this is what you do when you want to install a new program using a compressed format like tar.gz
1. Create a directory (like /home/<your home directory>/tmp
2. copy the *.tar.gz file into that directory
3. type "./configure && make && su -c 'make install"
4. when the system prompts you for the root password type it in and ... you are done.
Let me explain what you are doing here, though.
./configure (configures the source files to your system)
the "&& "" means and, so if the configuration part succeeds then it will also run the next command (make).
the make creates an installation fit to your system and finally su -c 'make install' indicates that you want to be the super-user (so you will be prompted for the root password) and the execute a command 'make install'.
Hope this helps.
Rick
Last edited by ralvez; 09-18-2005 at 10:25 AM.
|
|
|
09-18-2005, 01:13 PM
|
#6
|
LQ Newbie
Registered: Sep 2005
Distribution: RedHat 9.0
Posts: 8
Original Poster
Rep:
|
Yea, thanks for that.
Thing is i keep getting a gcc, g++ error message. It tells me i do not have it.
|
|
|
09-18-2005, 01:32 PM
|
#7
|
Member
Registered: Oct 2003
Location: Canada
Distribution: ArchLinux && Slackware 10.1
Posts: 298
Rep:
|
That is possible. See, depending what you installed it is possible that you do not have those packages. I typically install everything on my installation of the OS.
If that is the case then you will have to install those packages.
Rick
|
|
|
09-18-2005, 01:50 PM
|
#8
|
LQ Newbie
Registered: Sep 2005
Distribution: RedHat 9.0
Posts: 8
Original Poster
Rep:
|
From what i gather online, the only way i can fix this IS to reinstall my whole OS...
|
|
|
09-18-2005, 01:54 PM
|
#9
|
Member
Registered: Oct 2003
Location: Canada
Distribution: ArchLinux && Slackware 10.1
Posts: 298
Rep:
|
Nope. You just install the packages that the system is asking your for.
Thta's it.
Rick
|
|
|
09-18-2005, 07:15 PM
|
#10
|
LQ Addict
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908
|
For a good read for the Very-new-to-Linux, google up a copy of "Newbies Linux Manual" (I got it from www.linuxdot.org). It has many of the commands newbies will need to learn, things experienced users do every day without thinking twice and take for granted. It has a very good discussion on how to deal with tarballs (the .tar and .tar.gz files).
|
|
|
09-18-2005, 07:30 PM
|
#11
|
LQ Newbie
Registered: Sep 2005
Distribution: RedHat 9.0
Posts: 8
Original Poster
Rep:
|
Quote:
Originally posted by ralvez
Nope. You just install the packages that the system is asking your for.
Thta's it.
Rick
|
Yea, apparently i did not install any software developer's packages. But when i try to add it with the Linux CD i get an error and it says it cannot find system dependencies.
openssl=0.9.7a-2
krb5-libs=1.2.7-10
and searched the net and found the tarballs for these, but i could not install them... because i did not have g++
So basically, i the package i want to install is dependent on the package i need to install as a dependency for the package i want to install.
Thanks guys, but one day of surfing and i pretty much got a lot of the non-GUI terminal commands in my head already  .(Linux is not THAT hard) Thing is, none of the site actually tells you you need to open the terminal... which was the original reason i made the thread. But now there's the g++ problem
Last edited by Ardor; 09-18-2005 at 07:38 PM.
|
|
|
09-18-2005, 07:49 PM
|
#12
|
LQ Addict
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908
|
A couple of observations, if you will permit.
The Terminal: check the system tray for an icon that looks like a computer CRT with a shell overlayed (if you're using KDE environment). That's the terminal: a command-line utility that let's you enter commands manually, instead of point-and-click-to-the-point-of-nausea to try to get things done. With the terminal, once you are comfortable with command-line, you can frequently get things done faster that via point-and-click. It depends where your hands are. If on the keyboard, use terminal. If your hand is on the mouse, use point-and-click. Become familiar with both.
RedHat: it's an rpm based system. You probably rarely need tarballs to install apps. Find an rpm. Rpmfind.net is your friend, and RedHat rpms abound.
I'm suprised that RedHat installed, and didn't install glibc. Check your package manager (don't know what it's called in RedHat). If glibc doesn't show up as installed, then select it, insert the appropriate cd/dvd when prompted, and have done with it.
|
|
|
All times are GMT -5. The time now is 02:01 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|