Install qtroot on ubuntu 10.04

Dear QtRoot users,

I’m trying to install QtRoot on ubuntu 10.04 (freshly installed).

I have made three different kinds of attempts:

Attempt 1(3):
The installation file INSTALL_QTROOT.sh was downloaded from root.bnl.gov/QtRoot/INSTALL_QTROOT.sh, specifying root v5.30.00, and Qt v4.7.3. The only changes made to the installation script were:

  • adding 'sudo ’ before make, qmake and ./configure
  • adding the following flags to the root configuratin: --enable-python --enable-mathmore --enable-minuit2 --enable-roofit

Root, Qt and Coin3D appears to have been installed properly, however the script stopped when attempting building qtRoot. Here’s the error output:

g++ -shared -Wl,-soname,libPyROOT.so -m32 -g -o lib/libPyROOT.so bindings/pyroot/src/Adapters.o bindings/pyroot/src/ClassMethodHolder.o bindings/pyroot/src/ConstructorHolder.o bindings/pyroot/src/Converters.o bindings/pyroot/src/Executors.o bindings/pyroot/src/FunctionHolder.o bindings/pyroot/src/MemoryRegulator.o bindings/pyroot/src/MethodHolder.o bindings/pyroot/src/MethodProxy.o bindings/pyroot/src/ObjectProxy.o bindings/pyroot/src/PropertyProxy.o bindings/pyroot/src/PyBufferFactory.o bindings/pyroot/src/PyRootType.o bindings/pyroot/src/PyStrings.o bindings/pyroot/src/Pythonize.o bindings/pyroot/src/RootModule.o bindings/pyroot/src/RootWrapper.o bindings/pyroot/src/TCustomPyTypes.o bindings/pyroot/src/TemplateProxy.o bindings/pyroot/src/TPyClassGenerator.o bindings/pyroot/src/TPyDispatcher.o bindings/pyroot/src/TPyException.o bindings/pyroot/src/TPyFitFunction.o bindings/pyroot/src/TPyReturn.o bindings/pyroot/src/TPyROOTApplication.o bindings/pyroot/src/TPySelector.o bindings/pyroot/src/TPython.o bindings/pyroot/src/TRflxCallback.o bindings/pyroot/src/TSetItemHolder.o bindings/pyroot/src/Utility.o bindings/pyroot/src/G__PyROOT.o -Llib -lCore -lCint -lMathCore -lRIO -lNet -lHist -lGraf -lGraf3d -lGpad -lTree -lMatrix -lThread -Llib -lReflex -ldl -lpython2.6
==> lib/libPyROOT.so done
g++ -m32 -g -o bin/hist2workspace roofit/histfactory/src/MakeModelAndMeasurements.o
-Llib -lCore -lCint -lMathCore -lRIO -lNet -lHist -lGraf -lGraf3d -lGpad -lTree -lMatrix -lThread -lRint -Llib -lRooFit -lRooFitCore -lTree -lRIO -lMatrix -lHist -lMathCore -lGraf -lGpad -lMinuit -lFoam -lRooStats -lXMLParser -lHistFactory -lm -ldl -pthread -rdynamic
==> lib/libTMVA.so done
g++ -m32 -g -o bin/pq2 proof/pq2/src/pq2actions.o proof/pq2/src/pq2main.o proof/pq2/src/pq2ping.o proof/pq2/src/pq2wrappers.o proof/pq2/src/redirguard.o -Llib -lRIO -lNet -lHist -lTree -lMatrix -lProof -lThread -lCore -lCint -lMathCore -lm -ldl -pthread -rdynamic
g++ -m32 -g -o bin/root.exe main/src/rmain.o
-Llib -lCore -lCint -lMathCore -lRint -lm -ldl -pthread -rdynamic
g++ -m32 -g -o bin/rootn.exe main/src/rmain.o
-Llib -lNew -lCore -lCint -lMathCore -lRint -lm -ldl -pthread -rdynamic
g++ -m32 -g -o bin/proofserv.exe main/src/pmain.o
-Llib -lCore -lCint -lMathCore -lm -ldl -pthread -rdynamic
g++ -m32 -g -o bin/hadd main/src/hadd.o
-Llib -lCore -lCint -lMathCore -lRIO -lNet -lHist -lGraf -lGraf3d -lGpad -lTree -lMatrix -lThread -lm -ldl -pthread -rdynamic
g++ -m32 -g -o bin/roots.exe main/src/roots.o
-Llib -lCore -lCint -lMathCore -lm -ldl -pthread -rdynamic
g++ -m32 -g -o bin/h2root main/src/h2root.o
-Llib -lCore -lCint -lMathCore -lRIO -lNet -lHist -lGraf -lGraf3d -lGpad -lTree -lMatrix -lThread lib/libminicern.so
/usr/lib/gcc/i486-linux-gnu/4.4.3/libgfortran.so /usr/lib/gcc/i486-linux-gnu/4.4.3/libgfortranbegin.a -lm -ldl -pthread -rdynamic
no prefix - no make install make install
sudo: qmake: command not found

SOME FATAL ERROR DURING EXECUTION, SORRY…

Attempt 2(3):
I added the following variables to my .bashrc file, taken from the set_environment.sh script:
export QTDIR=/home/gustavok/physics/root/root_v53000/Qt-4.7.3
export QMAKESPEC=
export ROOTSYS=/home/gustavok/physics/root/root_v53000/root
export QTROOTSYSDIR=/home/gustavok/physics/root/root_v53000/root
export IVROOT=/home/gustavok/physics/root/root_v53000/Coin3D/coin3d/Linux/coin3d-3
export LD_LIBRARY_PATH=$ROOTSYS/lib:$IVROOT/lib:$QTDIR/lib:$LD_LIBRARY_PATH
export PATH=$ROOTSYS/bin:$QTDIR/bin:$IVROOT/bin:$PATH
export LD_LIBRARY_PATH=$QTROOTSYSDIR/lib:$LD_LIBRARY_PATH

Then, tried to issue the commands in the INSTALL_QTROOT.sh script, to build qtRoot. Opened new terminal, cd to qtRoot directory and issuing qmake gave me an error… I don’t understand why, but a Makefile is not generated by qmake, after issuing the command.

Here’s the output:
gustavok@gustavok-laptop:~/physics/root/root_v53000/qtRoot$ qmake
Project MESSAGE: excluding
Project MESSAGE: Installing of QtRoot system
Project MESSAGE: To remove some packages from the build, start the qmake utility as follows:
Project MESSAGE:
Project MESSAGE: > qmake QTPACKAGES -=
Project MESSAGE:
Project MESSAGE: type - to install qt qtgui qtgl qtthread qtimage qtroot qt4ged of QtRoot into </home/gustavok/physics/root/root_v53000/root> directory
Project MESSAGE:
Failure to open file: /home/gustavok/physics/root/root_v53000/qtRoot/Makefile
Unable to generate makefile for: /home/gustavok/physics/root/root_v53000/qtRoot/qtRoot.pro

Attempt 3(3):
Leaving the .bashrc as in attempt 2, opened new terminal and followed the instructions on root.bnl.gov/QtRoot/How2Install4Unix.html, under point 3 - ‘Complement existing root installation with qtroot plugin(x11 only)’. Given my .bashrc environment variables, I opted for merging ROOT and QTROOT libraries and header files.

I then followed the instructions, i.e. installing in directory QtRoot, etc.

qmake and make were issued without errors, however make install gave the following error (partially shown):

gustavok@gustavok-laptop:~/physics/root/root_v53000/QtRoot/qtRoot$ make install
cd qt/ && make -f Makefile install
make[1]: Entering directory /home/gustavok/physics/root/root_v53000/QtRoot/qtRoot/qt' install -m 644 -p /home/gustavok/physics/root/root_v53000/QtRoot/qtRoot/qt/inc/LinkDef.h /home/gustavok/physics/root/root_v53000/root/include/ install: cannot create regular file/home/gustavok/physics/root/root_v53000/root/include/LinkDef.h’: Permission denied
make[1]: [install_headerfiles] Error 1 (ignored)
install -m 644 -p /home/gustavok/physics/root/root_v53000/QtRoot/qtRoot/qt/inc/TGQt.h /home/gustavok/physics/root/root_v53000/root/include/
install: cannot create regular file /home/gustavok/physics/root/root_v53000/root/include/TGQt.h': Permission denied make[1]: [install_headerfiles] Error 1 (ignored) install -m 755 -p /home/gustavok/physics/root/root_v53000/QtRoot/qtRoot/qt/inc/TGQtGL.h /home/gustavok/physics/root/root_v53000/root/include/ install: cannot create regular file/home/gustavok/physics/root/root_v53000/root/include/TGQtGL.h’: Permission denied
make[1]: [install_headerfiles] Error 1 (ignored)
strip /home/gustavok/physics/root/root_v53000/root/include/TGQtGL.h
strip: ‘/home/gustavok/physics/root/root_v53000/root/include/TGQtGL.h’: No such file
make[1]: [install_headerfiles] Error 1 (ignored)
install -m 644 -p /home/gustavok/physics/root/root_v53000/QtRoot/qtRoot/qt/inc/TObjectExecute.h /home/gustavok/physics/root/root_v53000/root/include/
install: cannot create regular file /home/gustavok/physics/root/root_v53000/root/include/TObjectExecute.h': Permission denied make[1]: [install_headerfiles] Error 1 (ignored) install -m 644 -p /home/gustavok/physics/root/root_v53000/QtRoot/qtRoot/qt/inc/TQMimeTypes.h /home/gustavok/physics/root/root_v53000/root/include/ install: cannot create regular file/home/gustavok/physics/root/root_v53000/root/include/TQMimeTypes.h’: Permission denied
make[1]: [install_headerfiles] Error 1 (ignored)
install -m 644 -p /home/gustavok/physics/root/root_v53000/QtRoot/qtRoot/qt/inc/TQtApplication.h /home/gustavok/physics/root/root_v53000/root/include/
install: cannot create regular file /home/gustavok/physics/root/root_v53000/root/include/TQtApplication.h': Permission denied make[1]: [install_headerfiles] Error 1 (ignored) install -m 644 -p /home/gustavok/physics/root/root_v53000/QtRoot/qtRoot/qt/inc/TQtBrush.h /home/gustavok/physics/root/root_v53000/root/include/ install: cannot create regular file/home/gustavok/physics/root/root_v53000/root/include/TQtBrush.h’: Permission denied
make[1]: [install_headerfiles] Error 1 (ignored)
install -m 644 -p /home/gustavok/physics/root/root_v53000/QtRoot/qtRoot/qt/inc/TQtCanvasPainter.h /home/gustavok/physics/root/root_v53000/root/include/
install: cannot create regular file /home/gustavok/physics/root/root_v53000/root/include/TQtCanvasPainter.h': Permission denied make[1]: [install_headerfiles] Error 1 (ignored) install -m 644 -p /home/gustavok/physics/root/root_v53000/QtRoot/qtRoot/qt/inc/TQtClientFilter.h /home/gustavok/physics/root/root_v53000/root/include/ install: cannot create regular file/home/gustavok/physics/root/root_v53000/root/include/TQtClientFilter.h’: Permission denied
make[1]: [install_headerfiles] Error 1 (ignored)
install -m 755 -p /home/gustavok/physics/root/root_v53000/QtRoot/qtRoot/qt/inc/TQtClientGuard.h /home/gustavok/physics/root/root_v53000/root/include/
install: cannot create regular file /home/gustavok/physics/root/root_v53000/root/include/TQtClientGuard.h': Permission denied make[1]: [install_headerfiles] Error 1 (ignored) strip /home/gustavok/physics/root/root_v53000/root/include/TQtClientGuard.h strip: '/home/gustavok/physics/root/root_v53000/root/include/TQtClientGuard.h': No such file make[1]: [install_headerfiles] Error 1 (ignored) install -m 644 -p /home/gustavok/physics/root/root_v53000/QtRoot/qtRoot/qt/inc/TQtClientWidget.h /home/gustavok/physics/root/root_v53000/root/include/ install: cannot create regular file/home/gustavok/physics/root/root_v53000/root/include/TQtClientWidget.h’: Permission denied
make[1]: [install_headerfiles] Error 1 (ignored)
install -m 644 -p /home/gustavok/physics/root/root_v53000/QtRoot/qtRoot/qt/inc/TQtEmitter.h /home/gustavok/physics/root/root_v53000/root/include/
install: cannot create regular file /home/gustavok/physics/root/root_v53000/root/include/TQtEmitter.h': Permission denied make[1]: [install_headerfiles] Error 1 (ignored) install -m 644 -p /home/gustavok/physics/root/root_v53000/QtRoot/qtRoot/qt/inc/TQtEvent.h /home/gustavok/physics/root/root_v53000/root/include/ install: cannot create regular file/home/gustavok/physics/root/root_v53000/root/include/TQtEvent.h’: Permission denied
make[1]: [install_headerfiles] Error 1 (ignored)
install -m 755 -p /home/gustavok/physics/root/root_v53000/QtRoot/qtRoot/qt/inc/TQtEventQueue.h /home/gustavok/physics/root/root_v53000/root/include/
install: cannot create regular file /home/gustavok/physics/root/root_v53000/root/include/TQtEventQueue.h': Permission denied make[1]: [install_headerfiles] Error 1 (ignored) strip /home/gustavok/physics/root/root_v53000/root/include/TQtEventQueue.h strip: '/home/gustavok/physics/root/root_v53000/root/include/TQtEventQueue.h': No such file make[1]: [install_headerfiles] Error 1 (ignored) install -m 644 -p /home/gustavok/physics/root/root_v53000/QtRoot/qtRoot/qt/inc/TQtLock.h /home/gustavok/physics/root/root_v53000/root/include/ install: cannot create regular file/home/gustavok/physics/root/root_v53000/root/include/TQtLock.h’: Permission denied
make[1]: [install_headerfiles] Error 1 (ignored)
install -m 644 -p /home/gustavok/physics/root/root_v53000/QtRoot/qtRoot/qt/inc/TQtLockGuard.h /home/gustavok/physics/root/root_v53000/root/include/
install: cannot create regular file /home/gustavok/physics/root/root_v53000/root/include/TQtLockGuard.h': Permission denied make[1]: [install_headerfiles] Error 1 (ignored) install -m 644 -p /home/gustavok/physics/root/root_v53000/QtRoot/qtRoot/qt/inc/TQtMarker.h /home/gustavok/physics/root/root_v53000/root/include/ install: cannot create regular file/home/gustavok/physics/root/root_v53000/root/include/TQtMarker.h’: Permission denied
make[1]: [install_headerfiles] Error 1 (ignored)
install -m 755 -p /home/gustavok/physics/root/root_v53000/QtRoot/qtRoot/qt/inc/TQtPadFont.h /home/gustavok/physics/root/root_v53000/root/include/
install: cannot create regular file /home/gustavok/physics/root/root_v53000/root/include/TQtPadFont.h': Permission denied make[1]: [install_headerfiles] Error 1 (ignored) strip /home/gustavok/physics/root/root_v53000/root/include/TQtPadFont.h strip: '/home/gustavok/physics/root/root_v53000/root/include/TQtPadFont.h': No such file make[1]: [install_headerfiles] Error 1 (ignored) install -m 755 -p /home/gustavok/physics/root/root_v53000/QtRoot/qtRoot/qt/inc/TQtPen.h /home/gustavok/physics/root/root_v53000/root/include/ install: cannot create regular file/home/gustavok/physics/root/root_v53000/root/include/TQtPen.h’: Permission denied
make[1]: [install_headerfiles] Error 1 (ignored)

strip /home/gustavok/physics/root/root_v53000/root/include/TQtFloatSlider.cw
strip: ‘/home/gustavok/physics/root/root_v53000/root/include/TQtFloatSlider.cw’: No such file
make[1]: [install_headerfiles] Error 1 (ignored)
install -m 644 -p /home/gustavok/physics/root/root_v53000/QtRoot/qtRoot/qtgui/inc/TQtFloatSpinBox.cw /home/gustavok/physics/root/root_v53000/root/include/
install: cannot create regular file /home/gustavok/physics/root/root_v53000/root/include/TQtFloatSpinBox.cw': Permission denied make[1]: [install_headerfiles] Error 1 (ignored) install -m 644 -p /home/gustavok/physics/root/root_v53000/QtRoot/qtRoot/qtgui/inc/TQtFontComboBox.cw /home/gustavok/physics/root/root_v53000/root/include/ install: cannot create regular file/home/gustavok/physics/root/root_v53000/root/include/TQtFontComboBox.cw’: Permission denied
make[1]: [install_headerfiles] Error 1 (ignored)
install -m 644 -p /home/gustavok/physics/root/root_v53000/QtRoot/qtRoot/qtgui/inc/TQtLineStyleComboBox.cw /home/gustavok/physics/root/root_v53000/root/include/
install: cannot create regular file /home/gustavok/physics/root/root_v53000/root/include/TQtLineStyleComboBox.cw': Permission denied make[1]: [install_headerfiles] Error 1 (ignored) install -m 644 -p /home/gustavok/physics/root/root_v53000/QtRoot/qtRoot/qtgui/inc/TQtLineWidthComboBox.cw /home/gustavok/physics/root/root_v53000/root/include/ install: cannot create regular file/home/gustavok/physics/root/root_v53000/root/include/TQtLineWidthComboBox.cw’: Permission denied
make[1]: [install_headerfiles] Error 1 (ignored)
install -m 644 -p /home/gustavok/physics/root/root_v53000/QtRoot/qtRoot/qtgui/inc/TQtPatternSelectButton.cw /home/gustavok/physics/root/root_v53000/root/include/
install: cannot create regular file /home/gustavok/physics/root/root_v53000/root/include/TQtPatternSelectButton.cw': Permission denied make[1]: [install_headerfiles] Error 1 (ignored) install -m 755 -p "../libQtRootGui.so.1.0.0" "/home/gustavok/physics/root/root_v53000/root/lib/libQtRootGui.so.1.0.0" install: cannot create regular file/home/gustavok/physics/root/root_v53000/root/lib/libQtRootGui.so.1.0.0’: Permission denied
make[1]: [install_target] Error 1 (ignored)
strip --strip-unneeded "/home/gustavok/physics/root/root_v53000/root/lib/libQtRootGui.so.1.0.0"
strip: ‘/home/gustavok/physics/root/root_v53000/root/lib/libQtRootGui.so.1.0.0’: No such file
make[1]: [install_target] Error 1 (ignored)
ln -f -s “libQtRootGui.so.1.0.0” "/home/gustavok/physics/root/root_v53000/root/lib/libQtRootGui.so"
ln: creating symbolic link /home/gustavok/physics/root/root_v53000/root/lib/libQtRootGui.so': Permission denied make[1]: [install_target] Error 1 (ignored) ln -f -s "libQtRootGui.so.1.0.0" "/home/gustavok/physics/root/root_v53000/root/lib/libQtRootGui.so.1" ln: creating symbolic link/home/gustavok/physics/root/root_v53000/root/lib/libQtRootGui.so.1’: Permission denied
make[1]: [install_target] Error 1 (ignored)
ln -f -s “libQtRootGui.so.1.0.0” "/home/gustavok/physics/root/root_v53000/root/lib/libQtRootGui.so.1.0"
ln: creating symbolic link /home/gustavok/physics/root/root_v53000/root/lib/libQtRootGui.so.1.0': Permission denied make[1]: [install_target] Error 1 (ignored) install -m 644 -p "../libQtRootGui.prl" "/home/gustavok/physics/root/root_v53000/root/lib/libQtRootGui.prl" install: cannot create regular file/home/gustavok/physics/root/root_v53000/root/lib/libQtRootGui.prl’: Permission denied
make[1]: [install_target] Error 1 (ignored)
install -m 644 -p /home/gustavok/physics/root/root_v53000/QtRoot/qtRoot/qtgui/plugins/TGuiFactory/P100_TQtGUIFactory.C /home/gustavok/physics/root/root_v53000/root/etc/plugins/TGuiFactory/
install: cannot create regular file /home/gustavok/physics/root/root_v53000/root/etc/plugins/TGuiFactory/P100_TQtGUIFactory.C': Permission denied make[1]: [install_plugins] Error 1 (ignored) make[1]: Leaving directory/home/gustavok/physics/root/root_v53000/QtRoot/qtRoot/qtgui’
cd qtgl/ && make -f Makefile install
make[1]: Entering directory /home/gustavok/physics/root/root_v53000/QtRoot/qtRoot/qtgl' cd qglviewer/QGLViewer/ && make -f Makefile install make[2]: Entering directory/home/gustavok/physics/root/root_v53000/QtRoot/qtRoot/qtgl/qglviewer/QGLViewer’
install -m 755 -p “libQGLViewer.so.2.3.17” "/home/gustavok/physics/root/root_v53000/root/lib/libQGLViewer.so.2.3.17"
install: cannot create regular file /home/gustavok/physics/root/root_v53000/root/lib/libQGLViewer.so.2.3.17': Permission denied make[2]: [install_target] Error 1 (ignored) strip --strip-unneeded "/home/gustavok/physics/root/root_v53000/root/lib/libQGLViewer.so.2.3.17" strip: '/home/gustavok/physics/root/root_v53000/root/lib/libQGLViewer.so.2.3.17': No such file make[2]: [install_target] Error 1 (ignored) ln -f -s "libQGLViewer.so.2.3.17" "/home/gustavok/physics/root/root_v53000/root/lib/libQGLViewer.so" ln: creating symbolic link/home/gustavok/physics/root/root_v53000/root/lib/libQGLViewer.so’: Permission denied
make[2]: [install_target] Error 1 (ignored)
ln -f -s “libQGLViewer.so.2.3.17” "/home/gustavok/physics/root/root_v53000/root/lib/libQGLViewer.so.2"
ln: creating symbolic link /home/gustavok/physics/root/root_v53000/root/lib/libQGLViewer.so.2': Permission denied make[2]: [install_target] Error 1 (ignored) ln -f -s "libQGLViewer.so.2.3.17" "/home/gustavok/physics/root/root_v53000/root/lib/libQGLViewer.so.2.3" ln: creating symbolic link/home/gustavok/physics/root/root_v53000/root/lib/libQGLViewer.so.2.3’: Permission denied
make[2]: [install_target] Error 1 (ignored)
install -m 644 -p “libQGLViewer.prl” "/home/gustavok/physics/root/root_v53000/root/lib/libQGLViewer.prl"
install: cannot create regular file /home/gustavok/physics/root/root_v53000/root/lib/libQGLViewer.prl': Permission denied make[2]: [install_target] Error 1 (ignored) mkdir: cannot create directory/home/gustavok/physics/root/root_v53000/root/include/QGLViewer/’: Permission denied
make[2]: *** [install_include] Error 1
make[2]: Leaving directory /home/gustavok/physics/root/root_v53000/QtRoot/qtRoot/qtgl/qglviewer/QGLViewer' make[1]: *** [sub-qglviewer-QGLViewer-install_subtargets-ordered] Error 2 make[1]: Leaving directory/home/gustavok/physics/root/root_v53000/QtRoot/qtRoot/qtgl’
make: *** [sub-qtgl-install_subtargets-ordered] Error 2

I also tried ‘sudo make install’, giving me the error:
gustavok@gustavok-laptop:~/physics/root/root_v53000/QtRoot/qtRoot$ sudo make install
cd qt/ && make -f Makefile install
make[1]: Entering directory /home/gustavok/physics/root/root_v53000/QtRoot/qtRoot/qt' make[1]: *** No rule to make target/include/RConfig.h’, needed by .obj/GQtGUI.o'. Stop. make[1]: Leaving directory/home/gustavok/physics/root/root_v53000/QtRoot/qtRoot/qt’
make: *** [sub-qt-install_subtargets-ordered] Error 2

Have anybody encountered the same problems? I hope my mistakes are obvious!!

Best regards,
Gustavo