[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Sheflug] Linux experts,help please!



Hi Wenly

I am not a expert, but when I install from *.src.rpm with Mandrake 9.0
I use my normal account, e.g. ian and not root, and create a directory called 
"rpm" with directories inside that rpm called
BUILD
RPMS  + RPMS/i586 (depending on the system)
SOURCES
SPECS
tmp
and then rpm -i *.src.rpm and it should place the source code into the SOURCES 
directory above.  There should also be a spec for the program that you want 
to install in the SPECS directory.  Then rpm -ba <filename in the spec 
directory> .  This should build the rpm in the RPMS/i586 directory.

I am not sure if this helps.  
Ian

On Sunday 09 Mar 2003 2:30 pm, D X Zhang wrote:
> Hi,
> The version of my linux is Red Hat Linux 8.0,I have installed on my
> computer .Now,i want to install the source codes in my system,and there are
> some problems.
> I typed the following command in the system terminal
> rpm -ivh tcltk-8.3.3-74.src.rpm
> and the system displayed
> warning: tcltk-8.3.3-74.src.rpm: V3 DSA signature: NOKEY, key ID db42a60e
> error: cannot write to %sourcedir /usr/src/redhat/SOURCES
> So I thought this is because I had not got a suitable key,then I tried to
> check the keys installed for RPM verification by excuting the command
> rpm -qa gpg-pubkey*
> this time nothig was given out !! :-(
> I guess there must be something wrong with the key,and attempt to import a
> key by typing
> rpm --import /usr/share/rhn/RPM-GPG-KEY
> This time,very brilliant,the crappy system tell me for errors
> error: cannot get exclusive lock on /var/lib/rpm/Packages
> error: cannot open Packages index using db3 - Operation not permitted (1)
> error: cannot open Packages database in /var/lib/rpm
> error: /usr/share/rhn/RPM-GPG-KEY: import failed.
> Ate this stage, I really have no strategy at all!
> Experts,please help me!
> Thanks very much! :-)
>  Wenly
>
>
>
>
> ___________________________________________________________________
>
> Sheffield Linux User's Group -
> http://www.sheflug.co.uk/mailfaq.html
>
>   GNU the choice of a complete generation.

___________________________________________________________________

Sheffield Linux User's Group -
http://www.sheflug.co.uk/mailfaq.html

  GNU the choice of a complete generation.