Skip to content

Instantly share code, notes, and snippets.

@doevelopper
Last active February 27, 2020 20:53
Show Gist options
  • Save doevelopper/a796a0f9891bbb331a2be5f82c612307 to your computer and use it in GitHub Desktop.
Save doevelopper/a796a0f9891bbb331a2be5f82c612307 to your computer and use it in GitHub Desktop.

Install dependencies log4cxx Dependencies

>$  sudo apt-get install doxygen libldap2-dev libldap-2.4-2  libmysql++-dev
>$  sudo apt-get install libmysqlclient-dev libsqlite3-dev libgnutls28-dev libssl-dev
>$  sudo apt-get install unixodbc-dev libgdbm-dev libodb-pgsql-dev
>$  sudo apt-get install libcrossguid-dev  uuid-dev libossp-uuid-dev 
>$  sudo apt-get install libghc-uuid-dev libghc-uuid-types-dev 

But these libapr1 libapr1-dev libaprutil1 libaprutil1-dev libexpat

Expat

>$  git clone --depth=1 https://github.com/libexpat/libexpat.git
>$  cd libexpat/expat
>$  cmake -E make_directory build
>$  cmake -E chdir build cmake .. -DCMAKE_INSTALL_PREFIX=/opt/dds -DCMAKE_EXPORT_COMPILE_COMMANDS=ON
>$  cmake --build build --target all --clean-first
>$  cmake --build build --target install --clean-first

If using autotools

>$  cd libexpat/expat
>$ ./buildconf.sh
>$ ./configure CPPFLAGS=-DXML_LARGE_SIZE --prefix=/opt/dds/ --without-docbook --without-xmlwf
>$ sudo make install

APR

>$  wget http://www-eu.apache.org/dist//apr/apr-1.6.3.tar.gz
>$  tar -xvzf apr-1.6.3.tar.gz
>$  cd   apr-1.6.3
>$  ./configure --prefix=/opt/dds --enable-threads --enable-posix-shm \
    --enable-allocator-guard-pages --enable-pool-concurrency-check --enable-other-child
>$  make clean && make -j8 && sudo make install

APR-ICONV

>$  wget http://www-eu.apache.org/dist//apr/apr-iconv-1.2.2.tar.gz
>$  tar -xvzf apr-iconv-1.2.2.tar.gz
>$  cd apr-iconv-1.2.2
>$  ./configure --prefix=/opt/dds --with-apr=../apr-1.6.3 \
    && make clean && make -j8 && sudo make install

APR-UTIL

To suport all databases build/install header files and libraries : libmysqlclient-devel postgresql-devel \ unixODBC libopenssl-devel sqlite3-devel gdbm-devel openldap2-devel

>$  wget http://www-eu.apache.org/dist//apr/apr-util-1.6.1.tar.gz
>$  tar -xvzf apr-util-1.6.1.tar.gz
>$  cd apr-util-1.6.1
>$  ./configure --prefix=/opt/dds --with-apr=../apr-1.6.3 --with-expat=../expat-2.1.0 \
    --with-gdbm=/usr/include --with-sqlite3=/usr/include --with-odbc=/usr/include \
    --with-pgsql=/usr/include/pgsql --with-openssl=/usr/include/openssl \
    --with-mysql=/usr/include/mysql --with-crypto \
    --with-ldap-lib=/usr/lib   --with-ldap-include=/usr/include --with-ldap=openldap\
    --with-apr-iconv=../apr-iconv-1.2.2 

IF already inslattled

>$  ./configure --prefix=/opt/dds --with-apr=/opt/dds \
   --with-expat=/opt/dds --with-gdbm=/usr/include --with-sqlite3=/usr/include \
  --with-odbc=/usr/include --with-pgsql=/usr/include/pgsql --with-openssl=/usr/include/openssl \
  --with-mysql=/usr/include/mysql --with-crypto  

or simply

>$ ./configure --with-apr=../apr-1.6.3 --with-crypto
>$  make clean && make -j8 && sudo make install

APR2

>$  git clone https://github.com/apache/apr.git apr-2.0
>$  cd apr-2.0
>$  ./configure --prefix=/opt/dds --enable-shared --enable-static \
     --enable-threads --enable-posix-shm --enable-allocator-uses-mmap  \
     --enable-allocator-guard-pages \
     --enable-pool-concurrency-check --enable-other-child 
     --with-crypto  --with-openssl=/usr/include/openssl \
     --with-gdbm=/usr/include --with-sqlite3=/usr/include --with-odbc=/usr/include \
     --with-pgsql=/usr/include/pgsql --with-expat=..//home/happyman/gcs_installs

LOG4CXX

>$  cd log4cxx<dir>

With DB support

>$  ./configure --with-apr=/opt/dds --with-apr-util=/opt/dds \
    --with-ODBC=unixODBC --with-SMTP=libesmtp --enable-char --enable-wchar_t \
    --with-charset=utf-8 --with-logchar=utf-8

No db support

>$  ./configure --with-apr=../apr-1.5.2 --with-apr-util=../apr-util-1.5.4 \
     --with-ODBC=no --with-SMTP=no --enable-char --enable-wchar_t --with-charset=utf-8 \
     --with-logchar=utf-8 
>$  make clean && make -j8 && sudo make install
@doevelopper
Copy link
Author

$> ./configure --with-apr=/mingw64 --with-apr-util=/mingw64 --with-ODBC=unixODBC 
 --with-charset=utf-8 --with-logchar=utf-8 --enable-doxygen=no --enable-dot=no

@doevelopper
Copy link
Author

$> ./configure --with-apr=/mingw64 --with-apr-util=/mingw64 --with-ODBC=unixODBC 
 --with-charset=utf-8 --with-logchar=utf-8 --enable-doxygen=no --enable-dot=no

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment