LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Now I have gcc/cpp/cpp, but still can't install (https://www.linuxquestions.org/questions/linux-software-2/now-i-have-gcc-cpp-cpp-but-still-cant-install-26723/)

sfingerh 07-28-2002 06:38 PM

Now I have gcc/cpp/cpp, but still can't install
 
Hi,
yesterday I posted a message about installing gcc/cc/cpp etc.
Now, trying to install it I get this message

rpm -i gcc-3.2-0.1.src.rpm
error: cannot create %sourcedir /usr/src/redhat/SOURCES

A user of this site said i have to use rpm --rebuild gcc-3.2-0.1.src.rpm
but I get this message
rpm --rebuild gcc-3.2-0.1.src.rpm
gcc-3.2-0.1.src.rpm: No such file or directory

Thanks

neo77777 07-28-2002 07:39 PM

It means that gcc-3.2-0.1.src.rpm is not in the directory you are issuing the command from
as root
run
find / -name gcc-3.2-0.1.src.rpm -exec rpm --rebuild '{}' ';'
if it finds the file it executes rpm --rebuild on it then it rpm --rebuild puts the rpm files into /usr/src/redhat/RPMS/<architecture directory>
then just descend into apropriate directory and run rpm -ihv package1.rpm package2.rpm and so on

rverlander 07-30-2002 03:13 AM

no no no thier trying to install a source rpm which requires you have gcc to build it


All times are GMT -5. The time now is 10:57 AM.