LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Error while installing .rpm file (https://www.linuxquestions.org/questions/linux-software-2/error-while-installing-rpm-file-237459/)

sagar 10-01-2004 05:28 AM

Error while installing .rpm file
 
i have downloaded this .rpm files from net

squid-2.5.STABLE5-4.fc2.src.rpm
system-config-samba-1.2.15-0.fc2.1.src.rpm

when i executing the following command,
# rpm -U squid-2.5.STABLE5-4.fc2.src.rpm

then its showing following error

error: cannot create %sourcedir /usr/src/redhat/SOURCES

What should i do to remove this error.

liquidtenmilion 10-01-2004 05:39 AM

are you doing this as root?

If so check to see that the directory /usr/src/redhat/SOURCES exists.

if it doesn't, a simple

mkdir /usr/src/redhat/SOURCES/ will work.

Then install the rpm with rpm -Uvh filename.rpm

sagar 10-01-2004 07:08 AM

i have created the \usr\src\redhat\SOURCES\ ,but still the same error occurs.

please give me the way out.

acid_kewpie 10-01-2004 07:46 AM

you don't want to use those packages (at least not in the way you are trying to use them) as they are source files, not prebuilt progams. find a copy without "src" in the name, probably "i386" or "i686" instead.


All times are GMT -5. The time now is 08:25 PM.