I have installed gcc-6.1.0 before installing root-6.06.04. The only one configure added to gcc is “–prefix”. Then I use “make” to compile the root. It succeeded without any errors. But when use “make install” on root, it stopped with following error:
g++ -shared -Wl,-soname,libHbook.so -m64 -O2 -DNDEBUG -Wl,--no-undefined -Wl,--as-needed -o lib/libHbook.so hist/hbook/src/THbookBranch.o hist/hbook/src/THbookFile.o hist/hbook/src/THbookKey.o hist/hbook/src/THbookTree.o hist/hbook/src/G__Hbook.o -Llib -lCore -ldl -Llib -lHist -lMatrix -lTree -lGraf -lTreePlayer -lRIO -lminicern /home/bioinformatics2/wangshuaihu/software/gcc/lib/gcc/x86_64-pc-linux-gnu/6.1.0/../../../../lib64/libgfortran.so libgfortranbegin.a
g++: error: libgfortranbegin.a: No such file or directory
make: *** [lib/libHbook.so] Error 1
then I find that libgfortranbegin.a not included in the gcc/lib64. What should I do now?