wiki:HowotoinstallMadGRpahonSuSe102

Version 1 (modified by trac, 13 years ago) ( diff )

--

-- Main.RobertoFranceschini - 25 Mar 2007

Due to some "non-standardness" of SuSe 10.2 the straight setup procedure of MG_ME_V4.1.xx doesn't work. Here follows how it worked on several workstation running SuSe 10.2 both i586 and x86_64.

  • First issue is

*/usr/lib/gcc-lib/i586-suse-linux/3.3.5/../../../../i586-suse-linux/bin/ld: cannot find -lgcc_s* which is related to a misplacement of the file libg cc_s.so or libg cc_s.so.1. To solve this issue symlink the libgcc_s.so where is missing i.e. when you run locate libg cc_s.so you should match the following list (for x86_64 system).

~>locate libgcc_s.so
/lib/libgcc_s.so.1
/lib64/libgcc_s.so.1
/usr/lib/libgcc_s.so
/usr/lib/libgcc_s.so.1
/usr/lib64/gcc/x86_64-suse-linux/4.1.2/libgcc_s.so

Look to "man ln" to know how to symlink, the basic command is ln -s /lib/libgcc_s.so.1 /usr/lib/libgcc_s.so.1 where the first path is the link target and the second is the link

  • Second issue is

f77 -O -ffixed-line-length-132 -o decay decay_couplings.o decay.o decay_matrix.o decay_mom.o decay_event.o vegas.o decay_printout.o hdecay.o ran1.o rw_events.o open_file.o alfas_functions.o ../HELAS/lib/libdhelas3.a f77: ../HELAS/lib/libdhelas3.a: No such file or directory To understand what's hppening go to the HELAS folder and issue "make" you should get a

~/MG_ME_V4.1.24/HELAS> make
f77 -O -I. -c httsxx.F
f77: installation problem, cannot exec `cc1': No such file or directory
make: *** [httsxx.o] Error 1

This is related to the missing compiler cc1, you just need to put into the PATH. Again a symlink is enough to make MG n -s /usr/lib/gcc/i586-suse-linux/4.1.2/cc1 /bin/cc1 should work on most 10.2-i586.

  • Third issue is again

f77 -O -ffixed-line-length-132 -o decay decay_couplings.o decay.o decay_matrix.o decay_mom.o decay_event.o vegas.o decay_printout.o hdecay.o ran1.o rw_events.o open_file.o alfas_functions.o ../HELAS/lib/libdhelas3.a f77: ../HELAS/lib/libdhelas3.a: No such file or directory make[1]: * [all] Error 1 make[1]: Leaving directory `/home/roberto/MG_ME_V4.1.24/DECAY' make: * [decay] Error 2

If you still have this problem then change to HELAS folder and issue

make. You should get

~/MG_ME_V4.1.24/HELAS> make
f77 -O -I. -c httsxx.F
cc1: error: too many filenames given.  Type cc1 --help for usage
# 1 "httsxx.F"
make: *** [httsxx.o] Error 1

To fix it you have to edit /usr/lib/gcc-lib/i586-suse-linux/3.3.5/specs Open this file and look for:

*cpp_options:
%(cpp_unique_options) %1 %{m*} %{std*} %{ansi} %{W*&pedantic*} %{w} %{f*} %{g*} %{O*} %{undef}

edit this line replacing "%{O*}" by "-o"

These are all the erros i had to fix to make MG compile on suse linux, other happen if you want also pythia-pgs. Next i'll show how to fix these.

To fix *g77 -O2 -ffortran-bounds-check -fno-automatic -I../libraries/stdhep/src/inc -I../libraries/pgs/src -c pgs.f make[2]: Target `all' not remade because of errors.*

change to MG_ME_V4.1.24/pythia-pgs/libraries/stdhep/mcfio find

FFLAGS= $(DFLG) -fdebug-kludge -fno-second-underscore

and remove "-fdebug-kludge"

Note: See TracWiki for help on using the wiki.