Installing Wt on Opensuse

This page needs to be updated for Wt 2.x.x. The dependency for Xerces has been dropped, and instead Mini-XML is used now. Also, Wt 2.x.x comes with a built-in httpd which can be used as an alternative for FastCGI based deployment.

  • you need a couple of libraries - most stuff is already on CDs

<!-- -->

 yast --install cmake Xerces-c-devel boost-devel
  • FastCGI is in the factory at

<!-- -->

 sudo rpm -i FastCGI-2.4.0-3.1.i586.rpm FastCGI-devel-2.4.0-3.1.i586.rpm 
  • Don't install anything directly - do always use an rpm spec script. Here is one, just put the *.tar.gz into /your/own/rpm/SOURCES and call

<!-- -->

 rpmbuild -ba wt-library.spec 
  • sudo rpm -i /your/own/rpm/RPMS/i586/wt-library-1.99.2.i586.rpm

<!-- -->

%define nam wt
%define version 1.99.2
%define majorversion 1
%define release 0.1

Summary: WT Library
Name: %{nam}-library
Version: %{version}
Release: %{release}
Source0: %{nam}-%{version}.tar.gz
License: GPL
Group: Development/Libraries
BuildRoot: %{_tmppath}/%{nam}-buildroot
Prefix: %{_prefix}
BuildRequires: gcc-c++
BuildRequires: FastCGI-devel
BuildRequires: Xerces-c-devel
BuildRequires: boost-devel
BuildRequires: cmake
Requires: boost
Requires: FastCGI
Requires: Xerces-c

%package devel
Summary: WT Library
Group: Development/Libraries
Requires: FastCGI-devel
Requires: Xerces-c-devel

WT Library

%description devel
WT Library

%define cmake_install_prefix -DCMAKE_INSTALL_PREFIX:PATH=%{_prefix}
%define cmake_build_shared_libs -DBUILD_SHARED_LIBS:BOOL=ON

%setup -q -n %nam-%version
mkdir build
cd build && cmake ../ %{?cmake_install_prefix} %{?cmake_build_shared_libs}

cd build && make

cd build && make install DESTDIR=%buildroot
cd %buildroot%_libdir && { for lib in lib%{nam}*.so; do mv $lib $lib.%{version} ; ln -s $lib.%{version} $lib.%{majorversion} ; ln -s $lib.%{majorversion} $lib ; done; }



%files devel


# end of file

Updated by Wim Dumon about 13 years ago ยท 6 revisions