installation of openwsman from source - Openwsman/openwsman GitHub Wiki
Openwsman Source Repository
Openwsman uses GIT for Code version control. The Openwsman repository is hosted at Sourceforge and provides read only access to everyone and read/write access to developers. You can either view the repository online on Sourceforge or using this site which keeps an uptodate mirror of the SourceForge repository.
In order to access a GIT repository, you must install a special piece of software called a GIT client. GIT clients are available for most any operating system.
This projects GIT repository on github.com can be checked out through GIT with the following instruction set:
git clone git://github.com/Openwsman/openwsman.git
You can also use the web-based interface to view the source code. Githubs superb web UI gives you a great view into the current status of this project's code. You may also view the complete history of any file in the repository.
You can either build 'bleeding edge' code from a git clone (see above) or use one of the tagged releases by downloading and unpacking the respective .zip or .tar.gz
You need CMake to set up the build environment. CMake is part of all major Linux distributions or you can download pre-built binaries
CMake has the nice property of building in a separate tree from the source. Just follow these steps:
> cd <openwsman-source-directory>
> mkdir build
> cd build
> cmake -DCMAKE_INSTALL_PREFIX=/usr ..
> make
> sudo make install
In case you get
> CMake Error at CMakeLists.txt:119 (MESSAGE):
> Can only build for Python2 or Python3, but not both
then you have (development files for) Python 2 and Python 3 installed in parallel.
Then you need to explicitly choose the Python version by adding
> -DBUILD_PYTHON=FALSE -DBUILD_PYTHON3=TRUE
to the cmake
call. (Reverse the boolean values for Python 2. And make sure that ..
comes last 😉)
Creating the build environment with GNU autotools and 'configure' is deprecated and not actively maintained. If you want to build from source and cmake is not available for your operating system, this alternative build method is still available.
> sh autoconfiscate.sh
> ./configure --prefix=/usr
> make
> sudo make install
To be able to put the configuration files under /etc/openwsman
, run
the configure script with the --sysconfdir
option using the value
/etc. If this option is not used, the default will be under PREFIX
(/usr/local/etc ).