[mock@ten-186 ~]$ mock php-5.1.6-27.el5.src.rpm init clean prep This may take a while setup build Installing /builddir/build/SRPMS/php-5.1.6-27.src.rpm Building target platforms: i386 Building for target i386 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.23317 + umask 022 + cd /builddir/build/BUILD + LANG=C + export LANG + unset DISPLAY + cd /builddir/build/BUILD + rm -rf php-5.1.6 + /bin/gzip -dc /builddir/build/SOURCES/php-5.1.6.tar.gz
...
checking OpenSSL dir for SNMP... no /usr/bin/net-snmp-config: line 43: net-snmp-config-x86_64: command not found /usr/bin/net-snmp-config: line 43: net-snmp-config-x86_64: command not found /usr/bin/net-snmp-config: line 43: net-snmp-config-x86_64: command not found configure: error: Could not find the required paths. Please check your net-snmp installation. error: Bad exit status from /var/tmp/rpm-tmp.66050 (%build)
-- -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- - - - Jason Pyeron PD Inc. http://www.pdinc.us - - Principal Consultant 10 West 24th Street #100 - - +1 (443) 269-1555 x333 Baltimore, Maryland 21218 - - - -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- This message is copyright PD Inc, subject to license 20080407P00.
On 07/07/2010 07:26 AM, Jason Pyeron wrote:
checking OpenSSL dir for SNMP... no /usr/bin/net-snmp-config: line 43: net-snmp-config-x86_64: command not found /usr/bin/net-snmp-config: line 43: net-snmp-config-x86_64: command not found /usr/bin/net-snmp-config: line 43: net-snmp-config-x86_64: command not found configure: error: Could not find the required paths. Please check your net-snmp installation. error: Bad exit status from /var/tmp/rpm-tmp.66050 (%build)
Since you didn't really ask a question nor provide any further information, I will ask you the obvious question:
Is net-snmp-devel installed like it asks for?
$ yum whatprovides /usr/bin/net-snmp-config Loaded plugins: fastestmirror, priorities Reducing Extra Packages for Enterprise Linux 5 - x86_64 to included packages only Finished Excluding Packages from CentOS-5 - Extras Finished 0 packages excluded due to repository priority protections 1:net-snmp-devel-5.3.2.2-9.el5.i386 : The development environment for the NET-SNMP project. Repo : base Matched from: Filename : /usr/bin/net-snmp-config
1:net-snmp-devel-5.3.2.2-9.el5.x86_64 : The development environment for the NET-SNMP project. Repo : base Matched from: Filename : /usr/bin/net-snmp-config
<snip>
Maybe this shoul have been on the devel list, sorry if that is so.
-----Original Message----- From: centos-bounces@centos.org [mailto:centos-bounces@centos.org] On Behalf Of Rick Barnes Sent: Wednesday, July 07, 2010 7:45 To: CentOS mailing list Subject: Re: [CentOS] Mock build php i386 from x86_64 issue
On 07/07/2010 07:26 AM, Jason Pyeron wrote:
checking OpenSSL dir for SNMP... no /usr/bin/net-snmp-config: line 43: net-snmp-config-x86_64:
command not
found /usr/bin/net-snmp-config: line 43: net-snmp-config-x86_64:
command not
found /usr/bin/net-snmp-config: line 43: net-snmp-config-x86_64:
command not
found configure: error: Could not find the required paths. Please
check your
net-snmp installation. error: Bad exit status from /var/tmp/rpm-tmp.66050 (%build)
Since you didn't really ask a question nor provide any further information, I will ask you the obvious question:
I was just documenting an issue with a mock build.
Is net-snmp-devel installed like it asks for?
That is the purpose of mock, and yes it was, but I was building an i386 not an x86_64. The configure script was confused and the rpm src / mock did not straiten it out. The bug is either in the php src / .src.rpm or in the mock process.
$ yum whatprovides /usr/bin/net-snmp-config Loaded plugins: fastestmirror, priorities Reducing Extra Packages for Enterprise Linux 5 - x86_64 to included packages only Finished Excluding Packages from CentOS-5 - Extras Finished 0 packages excluded due to repository priority protections 1:net-snmp-devel-5.3.2.2-9.el5.i386 : The development environment for the NET-SNMP project. Repo : base Matched from: Filename : /usr/bin/net-snmp-config
1:net-snmp-devel-5.3.2.2-9.el5.x86_64 : The development environment for the NET-SNMP project. Repo : base Matched from: Filename : /usr/bin/net-snmp-config
<snip> _______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
-- -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- - - - Jason Pyeron PD Inc. http://www.pdinc.us - - Principal Consultant 10 West 24th Street #100 - - +1 (443) 269-1555 x333 Baltimore, Maryland 21218 - - - -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- This message is copyright PD Inc, subject to license 20080407P00.
I asked this question on the list a few months back. You need to use setarch to change to i386. Otherwise inside mock the arch command will return x86_64.
setarch i386 mock mockargs
Ryan
On Wed, Jul 7, 2010 at 9:25 AM, Jason Pyeron jpyeron@pdinc.us wrote:
Maybe this shoul have been on the devel list, sorry if that is so.
-----Original Message----- From: centos-bounces@centos.org [mailto:centos-bounces@centos.org] On Behalf Of Rick Barnes Sent: Wednesday, July 07, 2010 7:45 To: CentOS mailing list Subject: Re: [CentOS] Mock build php i386 from x86_64 issue
On 07/07/2010 07:26 AM, Jason Pyeron wrote:
checking OpenSSL dir for SNMP... no /usr/bin/net-snmp-config: line 43: net-snmp-config-x86_64:
command not
found /usr/bin/net-snmp-config: line 43: net-snmp-config-x86_64:
command not
found /usr/bin/net-snmp-config: line 43: net-snmp-config-x86_64:
command not
found configure: error: Could not find the required paths. Please
check your
net-snmp installation. error: Bad exit status from /var/tmp/rpm-tmp.66050 (%build)
Since you didn't really ask a question nor provide any further information, I will ask you the obvious question:
I was just documenting an issue with a mock build.
Is net-snmp-devel installed like it asks for?
That is the purpose of mock, and yes it was, but I was building an i386 not an x86_64. The configure script was confused and the rpm src / mock did not straiten it out. The bug is either in the php src / .src.rpm or in the mock process.
$ yum whatprovides /usr/bin/net-snmp-config Loaded plugins: fastestmirror, priorities Reducing Extra Packages for Enterprise Linux 5 - x86_64 to included packages only Finished Excluding Packages from CentOS-5 - Extras Finished 0 packages excluded due to repository priority protections 1:net-snmp-devel-5.3.2.2-9.el5.i386 : The development environment for the NET-SNMP project. Repo : base Matched from: Filename : /usr/bin/net-snmp-config
1:net-snmp-devel-5.3.2.2-9.el5.x86_64 : The development environment for the NET-SNMP project. Repo : base Matched from: Filename : /usr/bin/net-snmp-config
<snip> _______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
--
- -
- Jason Pyeron PD Inc. http://www.pdinc.us -
- Principal Consultant 10 West 24th Street #100 -
- +1 (443) 269-1555 x333 Baltimore, Maryland 21218 -
- -
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- This message is copyright PD Inc, subject to license 20080407P00.
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Nice, thanks
-----Original Message----- From: centos-bounces@centos.org [mailto:centos-bounces@centos.org] On Behalf Of Ryan Wagoner Sent: Wednesday, July 07, 2010 13:40 To: CentOS mailing list Subject: Re: [CentOS] Mock build php i386 from x86_64 issue
I asked this question on the list a few months back. You need to use setarch to change to i386. Otherwise inside mock the arch command will return x86_64.
setarch i386 mock mockargs
Ryan
On Wed, Jul 7, 2010 at 9:25 AM, Jason Pyeron jpyeron@pdinc.us wrote:
Maybe this shoul have been on the devel list, sorry if that is so.
-----Original Message----- From: centos-bounces@centos.org [mailto:centos-bounces@centos.org] On Behalf Of Rick Barnes Sent: Wednesday, July 07, 2010 7:45 To: CentOS mailing list Subject: Re: [CentOS] Mock build php i386 from x86_64 issue
On 07/07/2010 07:26 AM, Jason Pyeron wrote:
checking OpenSSL dir for SNMP... no /usr/bin/net-snmp-config: line 43: net-snmp-config-x86_64:
command not
found /usr/bin/net-snmp-config: line 43: net-snmp-config-x86_64:
command not
found /usr/bin/net-snmp-config: line 43: net-snmp-config-x86_64:
command not
found configure: error: Could not find the required paths. Please
check your
net-snmp installation. error: Bad exit status from /var/tmp/rpm-tmp.66050 (%build)
Since you didn't really ask a question nor provide any further information, I will ask you the obvious question:
I was just documenting an issue with a mock build.
Is net-snmp-devel installed like it asks for?
That is the purpose of mock, and yes it was, but I was building an i386 not an x86_64. The configure script was confused and
the rpm src
/ mock did not straiten it out. The bug is either in the php src / .src.rpm or in the mock process.
$ yum whatprovides /usr/bin/net-snmp-config Loaded plugins: fastestmirror, priorities Reducing Extra Packages for Enterprise Linux 5 - x86_64 to included packages only Finished Excluding Packages from CentOS-5 - Extras Finished 0 packages
excluded due to
repository priority protections 1:net-snmp-devel-5.3.2.2-9.el5.i386 : The development
environment for
the NET-SNMP project. Repo : base Matched from: Filename : /usr/bin/net-snmp-config
1:net-snmp-devel-5.3.2.2-9.el5.x86_64 : The development
environment
for the NET-SNMP project. Repo : base Matched from: Filename : /usr/bin/net-snmp-config
<snip> _______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
--
- -
- Jason Pyeron PD Inc. http://www.pdinc.us -
- Principal Consultant 10 West 24th Street #100 -
- +1 (443) 269-1555 x333 Baltimore, Maryland 21218 -
- -
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- This message is copyright PD Inc, subject to license 20080407P00.
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
-- -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- - - - Jason Pyeron PD Inc. http://www.pdinc.us - - Principal Consultant 10 West 24th Street #100 - - +1 (443) 269-1555 x333 Baltimore, Maryland 21218 - - - -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- This message is copyright PD Inc, subject to license 20080407P00.