Установка WMIC на сервере Ubuntu 12.04 LTS

У кого-либо была удача при установке wmic (wmi клиент) под Сервером Ubuntu 14.04 LTS?

Я попробовал после документа http://techedemic.com/2012/11/05/installing-wmic-in-ubuntu-12-04-lts-64-bit-desktop/ однако, я все еще не могу добраться, успешное делают.

Имеет любого, имел любую удачу при получении скомпилированной версии wmic на Ubuntu, мне нужно это для nagios check_wmi_plus, но это всегда ошибки, детали ниже.

Я не уверен, говорит ли информация о поддержке мне устанавливать те модули или не (извините будучи немой, в новинку для Ubuntu от OpenSuse).

Заранее большое спасибо.

Summary:

Support for GTK+ frontends: no (install gtk,gconf)
Support for SSL in SWAT and LDAP: no (install GNUTLS)
Support for threads in smbd (see --with-pthread): no (install PTHREAD)
Support for intelligent command line editing: no (install READLINE)
Support for changing process titles (see --with-setproctitle): no (install SETPROCTITLE)
Support for using extended attributes: yes
Support for using libblkid: no (install BLKID)
Support for using iconv: yes
Support for using pam: no (install PAM)
Using external popt: no
Developer mode: no
Automatic dependencies: no (install GNU make >= 3.81 and see --enable-automatic-dependencies)
Building shared libraries: yes
Using shared libraries internally: no (specify --enable-dso)

make[1]: Entering directory `/tmp/wmi-1.3.14/Samba/source'
Creating lib/util/util_proto.h
Creating lib/charset/charset_proto.h
Creating param/proto.h
Creating libcli/util/proto.h
defined(@array) is deprecated at ./pidl/pidl line 583.
        (Maybe you should just omit the defined()?)
Compiling ./librpc/idl/atsvc.idl
/usr/include/stdc-predef.h:0: Syntax error near '3'
Failed to parse ./librpc/idl/atsvc.idl at ./pidl/pidl line 583.
make[1]: *** [idl] Error 1
make[1]: Leaving directory `/tmp/wmi-1.3.14/Samba/source'
cd Samba/source ; \
        cp bin/winexe ../../bin ; \
        cp bin/wmic ../../bin ; \
        cp bin/shared/*async_wmi_lib.so.0* ../../lib/python
cp: cannot stat ‘bin/winexe’: No such file or directory
cp: cannot stat ‘bin/wmic’: No such file or directory
cp: cannot stat ‘bin/shared/*async_wmi_lib.so.0*’: No such file or directory
make: *** [pywmi-installed] Error 1
2
задан 28 May 2014 в 19:59

1 ответ

Попытайтесь добавить параметр компилятора -ffreestanding. Это работало на меня с Ubuntu 14.04 LTS.

make "CPP=gcc -E -ffreestanding"

я нашел это решение в комментарии здесь: Установка wmic в Ubuntu 12.04 (LTS) 64-разрядный Рабочий стол

0
ответ дан 28 May 2014 в 19:59

Другие вопросы по тегам:

Похожие вопросы: