TECHZEN Zenoss User Community ARCHIVE  

Problem with install zenpack PySamba

Subject: Problem with install zenpack PySamba
Author: [Not Specified]
Posted: 2014-10-24 03:48

I have a big problem with install zenpack.
Anybody can suggest me help

[zenoss@szm-vm-zen ~]$ mkdir linked-zenpacks
[zenoss@szm-vm-zen ~]$ cd linked-zenpacks
[zenoss@szm-vm-zen linked-zenpacks]$ git clone https://github.com/zenoss/ZenPacks.zenoss.PySamba.git
Initialized empty Git repository in /home/zenoss/linked-zenpacks/ZenPacks.zenoss.PySamba/.git/
remote: Counting objects: 2530, done.
remote: Total 2530 (delta 0), reused 0 (delta 0)
Receiving objects: 100% (2530/2530), 4.62 MiB | 1.87 MiB/s, done.
Resolving deltas: 100% (418/418), done.
[zenoss@szm-vm-zen linked-zenpacks]$ zenpack --link --install ZenPacks.zenoss.PySamba
Traceback (most recent call last):
File "setup.py", line 52, in
raise Exception('"make build" exited with an error: %s' % p.returncode)
Exception: "make build" exited with an error: 2
GNUmakefile found. Running "make build" ..
cd /home/zenoss/linked-zenpacks/ZenPacks.zenoss.PySamba/src/wmi ; \
if ! make debug PYSAMBA_prefix=/home/zenoss/linked-zenpacks/ZenPacks.zenoss.PySamba/ZenPacks/zenoss/PySamba; then \
echo "Error: Failed during check_prereqs" ;\
echo " cd /home/zenoss/linked-zenpacks/ZenPacks.zenoss.PySamba/src/wmi" ;\
echo " make debug PYSAMBA_prefix=/home/zenoss/linked-zenpacks/ZenPacks.zenoss.PySamba/ZenPacks/zenoss/PySamba" ;\
exit 1 ;\
fi
make[1]: Entering directory `/home/zenoss/linked-zenpacks/ZenPacks.zenoss.PySamba/src/wmi'
WMI_VERSION = 1.3.16
SAMBA_SRCDIR = Samba/source
PYSAMBA_prefix = /home/zenoss/linked-zenpacks/ZenPacks.zenoss.PySamba/ZenPacks/zenoss/PySamba
PYSAMBA_prefix_BIN= /home/zenoss/linked-zenpacks/ZenPacks.zenoss.PySamba/ZenPacks/zenoss/PySamba/bin
PYSAMBA_prefix_LIB= /home/zenoss/linked-zenpacks/ZenPacks.zenoss.PySamba/ZenPacks/zenoss/PySamba/lib
DESTDIR =
ZENHOME_BIN = /opt/zenoss/bin
ZENHOME_LIB = /opt/zenoss/lib
ZENHOME_INC = /opt/zenoss/include/python2.7
ZENPYTHON = LD_LIBRARY_PATH=/opt/zenoss/lib /opt/zenoss/bin/python
ZENPYTHON_VERSION = python2.7
WMI_CONFIGURE CPPFLAGS=-I/opt/zenoss/include/python2.7 -DBREAKPAD ./configure --without-readline --enable-debug
WMI_MAKE make proto bin/wmic bin/winexe libraries
LIBRPC_CONFIG_TAG = /opt/zenoss/lib/libbreakpad_client.a
USE_BREAKPAD [ enabled ]
breakpad_CPPFLAGS = -DBREAKPAD
breakpad_LIB = libbreakpad_client.a
breakpad_LIBDIR = /opt/zenoss/lib
fqp_breakpad_LIB = /opt/zenoss/lib/libbreakpad_client.a
ZENHOME = /opt/zenoss
make[1]: Leaving directory `/home/zenoss/linked-zenpacks/ZenPacks.zenoss.PySamba/src/wmi'
echo "Building WMI libraries..."
Building WMI libraries...
make[1]: Entering directory `/home/zenoss/linked-zenpacks/ZenPacks.zenoss.PySamba/src/wmi'
cd Samba/source ;\
./autogen.sh ;\
CPPFLAGS="-I/opt/zenoss/include/python2.7 -DBREAKPAD" ./configure --without-readline --enable-debug
make[1]: Leaving directory `/home/zenoss/linked-zenpacks/ZenPacks.zenoss.PySamba/src/wmi'
Error: Failed during build
cd /home/zenoss/linked-zenpacks/ZenPacks.zenoss.PySamba/src/wmi
make build PYSAMBA_prefix=/home/zenoss/linked-zenpacks/ZenPacks.zenoss.PySamba/ZenPacks/zenoss/PySamba
Unable to build WMI.

./autogen.sh: need autoconf 2.53 or later to build samba from SVN
/bin/sh: line 2: ./configure: No such file or directory
make[1]: *** [Samba/source/Makefile] Error 127
make: *** [build] Error 1

ERROR:zen.ZenPackCMD:Error installing ZenPack ZenPacks.zenoss.PySamba
Traceback (most recent call last):
File "/opt/zenoss/Products/ZenUtils/ZenPackCmd.py", line 237, in InstallEggAndZenPack
zpDists = InstallEgg(dmd, eggPath, link=link)
File "/opt/zenoss/Products/ZenUtils/ZenPackCmd.py", line 300, in InstallEgg
DoEasyUninstall(eggPath)
File "/opt/zenoss/Products/ZenUtils/ZenPackCmd.py", line 931, in DoEasyUninstall
easy_install.main(args)
File "/opt/zenoss/lib/python/setuptools/command/easy_install.py", line 1712, in main
with_ei_usage(lambda:
File "/opt/zenoss/lib/python/setuptools/command/easy_install.py", line 1700, in with_ei_usage
return f()
File "/opt/zenoss/lib/python/setuptools/command/easy_install.py", line 1716, in
distclass=DistributionWithoutHelpCommands, **kw
File "/opt/zenoss/lib/python2.7/distutils/core.py", line 152, in setup
dist.run_commands()
File "/opt/zenoss/lib/python2.7/distutils/dist.py", line 953, in run_commands
self.run_command(cmd)
File "/opt/zenoss/lib/python2.7/distutils/dist.py", line 972, in run_command
cmd_obj.run()
File "/opt/zenoss/lib/python/setuptools/command/easy_install.py", line 211, in run
self.easy_install(spec, not self.no_deps)
File "/opt/zenoss/lib/python/setuptools/command/easy_install.py", line 427, in easy_install
return self.install_item(None, spec, tmpdir, deps, True)
File "/opt/zenoss/lib/python/setuptools/command/easy_install.py", line 476, in install_item
dists = self.install_eggs(spec, download, tmpdir)
File "/opt/zenoss/lib/python/setuptools/command/easy_install.py", line 655, in install_eggs
return self.build_and_install(setup_script, setup_base)
File "/opt/zenoss/lib/python/setuptools/command/easy_install.py", line 930, in build_and_install
self.run_setup(setup_script, setup_base, args)
File "/opt/zenoss/lib/python/setuptools/command/easy_install.py", line 919, in run_setup
run_setup(setup_script, args)
File "/opt/zenoss/lib/python/setuptools/sandbox.py", line 62, in run_setup
lambda: execfile(
File "/opt/zenoss/lib/python/setuptools/sandbox.py", line 105, in run
return func()
File "/opt/zenoss/lib/python/setuptools/sandbox.py", line 64, in
{'__file__':setup_script, '__name__':'__main__'}
File "setup.py", line 52, in
Exception: "make build" exited with an error: 2
ERROR:zen.ZenPackCmd:zenpack command failed
Traceback (most recent call last):
File "/opt/zenoss/Products/ZenUtils/zenpack.py", line 487, in
zp.run()
File "/opt/zenoss/Products/ZenUtils/zenpack.py", line 164, in run
fromUI=self.options.fromui)
File "/opt/zenoss/Products/ZenUtils/ZenPackCmd.py", line 263, in InstallEggAndZenPack
raise e
Exception: "make build" exited with an error: 2



Subject: Well the bit of the error you
Author: Andrew Kirch
Posted: 2014-10-27 15:29

Well the bit of the error you care about is here:

./autogen.sh: need autoconf 2.53 or later to build samba from SVN
/bin/sh: line 2: ./configure: No such file or directory
make[1]: *** [Samba/source/Makefile] Error 127
make: *** [build] Error 1

You need to install autoconf to build against samba. My question is why you're building this zenpack from source. It's included with Zenoss Core.

Andrew Kirch

akirch@gvit.com

Need Zenoss support, consulting or custom development Look no further. Email or PM me!

Ready for Distributed Topology (collectors) for Zenoss 5 Coming May 1st from GoVanguard



< Previous
KeyError: '/zport/dmd/Mibs/SentryCDU'
  Next
how to upgrade control center(serviced)
>