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 10-27-2003, 01:43 PM   #1
javadi82
LQ Newbie
 
Registered: Oct 2003
Posts: 2

Rep: Reputation: 0
installing from source and why tar?


i have the source of mysql. when i try to install it using the command: rpm -i mysql.src.rpm
i get an error like:cannot write to /usr/src/rpm/sources.

when i checked the properties of the /usr/src/rpm/sources directory, the write right was restricted to root.

i use mandrake8 and by default the login is my username. how can i login as root instead of the default username-when the mandrake login screen does not allow me to type in the username at all and only allows me to type in the password?

Second question:
I know that the tar command is used to archive and the gzip command is used to compress. but why use tar at all? what is an archive(in relation to files)? why should i archive my file?
 
Old 10-27-2003, 02:01 PM   #2
TheChicken
LQ Newbie
 
Registered: Aug 2003
Posts: 29

Rep: Reputation: 15
you can get root rights by the 'su' command
In a terminal:
su
(type password)

et voila
 
Old 10-28-2003, 05:07 AM   #3
slakmagik
Senior Member
 
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113

Rep: Reputation: Disabled
A tar.gz beats downloading a zillion gzips. *g* Though you can concatenate multiple zips. Plus I think tar creates an archived copy by default and gzip deletes the original by default. I suspect, but don't recall, that they handle permissions and timestamps on the files differently, too. Tar was originally for tape archives. Just the usual *nix hyper-flexibility and inertia of custom, I suppose. Applying the right options to either would have the same effect as a different string of options on the other in most cases. *shrug*
 
Old 10-28-2003, 05:17 AM   #4
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,568

Rep: Reputation: 164Reputation: 164
Re: installing from source and why tar?

Quote:
Originally posted by javadi82
i have the source of mysql. when i try to install it using the command: rpm -i mysql.src.rpm
i get an error like:cannot write to /usr/src/rpm/sources.
Which user were you logged as when you tried the command? If you were your normal user, use 'su' (as suggested above):
1. Open a terminal
2. Type 'su', press Enter. You'll be asked for root password, enter it.
3. Cd to the right directory and run 'rpm -i mysql.src.rpm'.
 
  


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
problem installing source files tar.gz griever33127 Slackware - Installation 8 10-14-2005 12:13 PM
source tar for rootfiles thushara Linux - General 1 04-07-2005 01:22 PM
Installing Software from source.. bin. tar. Vm Consoles, TCL??? murbz Linux - Software 3 07-15-2004 06:08 PM
Error while installing package.tar.tar isone Linux - Software 2 11-03-2003 12:58 PM
installing from a source tar.gz SonKun Linux - General 2 08-23-2003 06:43 PM


All times are GMT -5. The time now is 12:51 PM.

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