User forums > General (but related to Code::Blocks)
suse 10.1 gcc problem
TeddyKrulewich:
I was trying to make an rpm not install it but i gues i will just do what you said
mdelfede:
--- Quote from: TeddyKrulewich on July 27, 2006, 05:07:08 am ---I was trying to make an rpm not install it but i gues i will just do what you said
--- End quote ---
Better.... compile from source, make an RPM and install it makes not much sense... RPM are useful only to distribuite it.
Ciao
Max
Game_Ender:
By using a package you make it very easy to uninstall something later. I use checkinstall on the time to generate packages for custom compilied programs. Then I all I have to do to uninstall the program is check a box in the package manager. Checkinstall runs "make install" then generates a debian package and installs it. There might be something similar for rpms.
TheTuxKeeper:
--- Quote from: Game_Ender on July 27, 2006, 10:25:04 pm ---By using a package you make it very easy to uninstall something later. I use checkinstall on the time to generate packages for custom compilied programs. Then I all I have to do to uninstall the program is check a box in the package manager. Checkinstall runs "make install" then generates a debian package and installs it. There might be something similar for rpms.
--- End quote ---
checkinstall works same for RPMs ;)
I've uploaded a source RPM of gcc 4.0 that will be installed to /opt/gcc_40 the executables all have "_40" as suffix. It will create two packages gcc_40 and gcc_40-fortran. I didn't create the package myself, I took the gcc 4.0 package for Suse 9.3 from another packager. I didn't test whether it builds completely (no time yet, will do it today), but since nor suse 9.3 specific neither I did big changes (added some essential buildrequires and disabled gcc-gnat and gcc-java build) it should build correctly.
Here is the link: http://www.uploading.com/?get=O5PPGVII
To build the package do these steps:
1. run sudo rpmbuild --rebuild --target=$ARCH gcc_40-4.0.2-0.daniel2000.1.src.rpm (replace $ARCH by x86_64, i586 or whatever you have :))
2. the install the package /usr/src/packages/RPMS/$ARCH/gcc_40-4.0.2-0.daniel2000.1.$ARCH.rpm
TeddyKrulewich:
thanks for all of the help and i did sucsesfully build a working rpm
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version