There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
 
Tag Cloud
acer black screen blue screen boot bsod computer connection crash css dell display driver drivers email error excel explorer firefox firefox 3 game hard drive internet internet explorer itunes laptop linux malware network networking outlook outlook 2003 outlook express partition password printer problem ram router security slow software sound trojan usb video virus vista windows windows xp wireless
UNIX/Linux
Search
Search in:
 
Advanced Search
Tech Support Guy Forums > Operating Systems > UNIX/Linux >
New to Linux - RPM help needed


HELLO AND WELCOME! Before you can post your question, you'll have to register -- it's completely free! Click here to join today! We highly recommend that you print a copy of our Guide for New Members. Enjoy!

Closed Thread
 
Thread Tools
jarhead8286's Avatar
Junior Member with 12 posts.
 
Join Date: Nov 2004
Experience: Advanced
06-Nov-2004, 11:53 AM #1
New to Linux - RPM help needed
I have installed Redhat 7.2 on a Dell 400Mhz to get to know Linux. I attempted to install Firefox and got this error message:

./firefox-installer-bin: error while loading shared libraries: libgtk-x11-2.0.so.0: cannot open shared object file: No such file or directory

I was told to install this RPM:
gtk2-2.2.0.0.200301250412-0.snap.ximian.1.i386.rpm

When I tried to install it, I received this error:
error: cannot create %sourcedir /usr/src/redhat/SOURCES

So I went ahead and created the "missing" directory and was able to extract it. What do I do with the extracted gtk+-2.0.6.tar.gz and gtk2.spec files?

This feels so awkward - I have been working with Windoze environment for many years, but feel so helpless with Linux
Whiteskin's Avatar
Distinguished Member with 2,051 posts.
 
Join Date: Nov 2002
Location: Alberta, Canada
Experience: Windows: Decent. Unix/Linux: Advanced +1
06-Nov-2004, 12:25 PM #2
First off, you may want to move up to a newer distro. people seem to like Fedora Core, though on that box you want to be carefull you don't install things that will slow it down to molasses.

That said, try rpm -ba gtk2.spec (as root of course)
__________________
emerge world_domination;
Smart Questions gentoo
Ubuntu
linux google:Shiny!
Whiteskin's Avatar
Distinguished Member with 2,051 posts.
 
Join Date: Nov 2002
Location: Alberta, Canada
Experience: Windows: Decent. Unix/Linux: Advanced +1
06-Nov-2004, 12:25 PM #3
(This guide points the way)http://www.netadmintools.com/art272.html
jarhead8286's Avatar
Junior Member with 12 posts.
 
Join Date: Nov 2004
Experience: Advanced
08-Nov-2004, 05:13 PM #4
Quote:
Originally Posted by Whiteskin
... try rpm -ba gtk2.spec (as root of course)
I tried running rpm -ba gtk2.spec ang got an error message "no such file or diretory" - the file does exist in the /usr/src/redhat/SOURCES directory.
Whiteskin's Avatar
Distinguished Member with 2,051 posts.
 
Join Date: Nov 2002
Location: Alberta, Canada
Experience: Windows: Decent. Unix/Linux: Advanced +1
08-Nov-2004, 05:58 PM #5
download the 2.4 source from here(ftp://ftp.gtk.org/pub/gtk/v2.4/), extract, and inside do the ./configure, make, make install routine.
jarhead8286's Avatar
Junior Member with 12 posts.
 
Join Date: Nov 2004
Experience: Advanced
08-Nov-2004, 06:22 PM #6
Quote:
Originally Posted by Whiteskin
download the 2.4 source from here(ftp://ftp.gtk.org/pub/gtk/v2.4/), extract, and inside do the ./configure, make, make install routine.
Whiteskin,
Once I download the gtk+-2.4.0.tar.gz file, can you explain what "./configure, make, make install routine" is. I guess I have a lot of learning to do.
Whiteskin's Avatar
Distinguished Member with 2,051 posts.
 
Join Date: Nov 2002
Location: Alberta, Canada
Experience: Windows: Decent. Unix/Linux: Advanced +1
08-Nov-2004, 06:36 PM #7
When installing software in linux that's not a binary, you get the actual source code, the actual files that are used to create the binary. the standard routine for installing software is using tar to extract the archive, in this case tar xvf(z|j) gtk....tar.(gz|bz2) (z or j depends on which you download, the .gz or the .bz2

then, you cd (change directory) into the newfolder. (Usually the exact same as the file name without the extension.) then, after reading the README, type ./configure

this will search your system for the things it needs. Once this is done, or it tells you what you need (which you then scurry off to fetch, and install), type in make. Make will go through building everything it needs. All of this stuff can be done as a normal user. then, after a compile process, become root (using su), and type in make install. This will install all the files and folders.

And tada, you have manually installed your first package.

Now, I really can't stress how much you should probably upgrade. RH7.2 is ancient, and you will find that many, if not most, modern packages will barf on trying to install because of the oldness of your system.

Your box may seem old in the windows world, but it's more than fast enough for linux. I'd reccomend trying a debian based distro, as it has the strongest and most newbie friendly packagmanager, called apt. (advanced package tool). Apt will download and install everything you need to run a piece of software.

A nice debian-based distro is new to the scene, called Ubuntu. They will even ship you a CD if you want, from here http://shipit.ubuntulinux.org/

http://www.ubuntulinux.org/

Now, if at first it seems slow, it's probably because it's running Gnome 2.8 by default, which is a fairly heavy desktop. So, one of the first orders of business will be to either switch desktops, or try and get it runnig faster (by slimming down the effects, etc.)
__________________
emerge world_domination;
Smart Questions gentoo
Ubuntu
linux google:Shiny!
jarhead8286's Avatar
Junior Member with 12 posts.
 
Join Date: Nov 2004
Experience: Advanced
08-Nov-2004, 06:49 PM #8
Wow! thanks for taking the time to explain. Yep, I bought Redhat 7.2 a while ago and didn't realize that it's already ancient. I just requested a copy of Ubuntu. I can't believe they didn't even ask for a penny.
Whiteskin's Avatar
Distinguished Member with 2,051 posts.
 
Join Date: Nov 2002
Location: Alberta, Canada
Experience: Windows: Decent. Unix/Linux: Advanced +1
08-Nov-2004, 06:50 PM #9
Quote:
Originally Posted by jarhead8286
Wow! thanks for taking the time to explain. Yep, I bought Redhat 7.2 a while ago and didn't realize that it's already ancient. I just requested a copy of Ubuntu. I can't believe they didn't even ask for a penny.
Pretty impressive eh?
Closed Thread

THIS THREAD HAS EXPIRED.
Are you having the same problem? We have volunteers ready to answer your question, but first you'll have to join for free. Need help getting started? Check out our Welcome Guide.


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
WELCOME TO TECH SUPPORT GUY! Are you looking for the solution to your computer problem? Join our site today to ask your question -- for free! Our site is run completely by volunteers who help people like you solve computer problems. See our Welcome Guide to get started.



Thread Tools


You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -4. The time now is 12:32 AM.
Copyright © 1996 - 2008 TechGuy, Inc. All rights reserved.
Powered by vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Powered by Cermak Technologies, Inc.