v2.0.4 SRPM build failure on RHEL4

Hi all, I have been trying to build v2.0.4's SRPM on a Redhat Enterprise machine, but the RPM build process bombs out as follows: + export OTRSUSER=otrs + OTRSUSER=otrs + useradd otrs useradd: user otrs exists + : + useradd apache useradd: user apache exists + : + groupadd apache groupadd: group apache exists + : + /var/tmp/otrs-2.0.4-build/opt/otrs/bin/SetPermissions.sh /var/tmp/otrs-2.0.4-build/opt/otrs otrs apache apache apache /var/tmp/rpm-tmp.57870: /var/tmp/otrs-2.0.4-build/opt/otrs/bin/SetPermissions.sh: /bin/sh: bad interpreter: Permission denied error: Bad exit status from /var/tmp/rpm-tmp.57870 (%install) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.57870 (%install) Has anybody seen this before? If an attempt is made to run "/var/tmp/otrs-2.0.4-build/opt/otrs/bin/SetPermissions.sh /var/tmp/otrs-2.0.4-build/opt/otrs otrs apache apache apache" manually, everything works fine. I am stumped. Anybody have any ideas? Regards, Graham --

Graham Leggett wrote:
I have been trying to build v2.0.4's SRPM on a Redhat Enterprise machine, but the RPM build process bombs out as follows:
/var/tmp/otrs-2.0.4-build/opt/otrs/bin/SetPermissions.sh: /bin/sh: bad interpreter: Permission denied
Turns out /var/tmp was symlinked to /tmp, which was mounted by default with the noexec option. This caused the attempt at running scripts during the build to fail. Regards, Graham --

Graham Leggett wrote:
I have been trying to build v2.0.4's SRPM on a Redhat Enterprise machine, but the RPM build process bombs out as follows:
/var/tmp/otrs-2.0.4-build/opt/otrs/bin/SetPermissions.sh: /bin/sh: bad interpreter: Permission denied
Turns out /var/tmp was symlinked to /tmp, which was mounted by default with the noexec option.
This caused the attempt at running scripts during the build to fail.
I just used the rpm on the OTRS site for FC1-FC3. Works just fine on CentOS 4. Guess it would work on RHEL 4 too then. Nils.

On Fri, March 24, 2006 1:02 pm, Nils Breunese (Lemonbit Internet) said:
I just used the rpm on the OTRS site for FC1-FC3. Works just fine on CentOS 4. Guess it would work on RHEL 4 too then.
Did you build the RPM or just use the binary? My target machine is x86_64, so the procompiled binaries would not have worked. Regards, Graham --

Graham Leggett wrote:
On Fri, March 24, 2006 1:02 pm, Nils Breunese (Lemonbit Internet) said:
I just used the rpm on the OTRS site for FC1-FC3. Works just fine on CentOS 4. Guess it would work on RHEL 4 too then.
Did you build the RPM or just use the binary? My target machine is x86_64, so the procompiled binaries would not have worked.
Ah, I just used the binary, but my box is not 64-bit indeed. Nils.
participants (2)
-
Graham Leggett
-
Nils Breunese (Lemonbit Internet)