Problems using rpm to install root-10.0.2 on RedHat 7

Hi,
I have followed explicitly the instructions in README/INSTALL for compiling root on RedHat 7 using rpm. Part of the instructions say:

B) However, if you don’t have system privileges, you should set up a
build area by having the file ~/.rpmrc with a contents like:

    %macrofiles: /usr/lib/rpm/macros:<your home dir>/.rpmmac

after much aggravation, I found that the “%” should not be before “macrofiles”. The line should be:

   macrofiles: /usr/lib/rpm/macros:<your home dir>/.rpmmac

This, however only soved part of my problem. Now when I give the command “rpm -ba root.spec”, the files get untarred, but immediately afterwards I get an error which says:

  • STATUS=0
  • ‘[’ 0 -ne 0 ‘]’
  • cd root
    /var/tmp/rpm-tmp.56805: cd: root: No such file or directory
    error: Bad exit status from /var/tmp/rpm-tmp.56805 (%prep)

Has anyone successfully compiled root on RedHat 7?

                                                Cheers,
                                                  -J

Hi,
I have baked my own root.spec file. Maybe it is of use to you:

http://root.cern.ch/phpBB2/viewtopic.php?t=616

Thanks! That seemed to work! The only problem was that I had to remove the newline characters in the “./configure linux” section first (for those who are still having problems).

                        Cheers,
                           -J