[etherlab-users] Installing DLS in MacOSX

Daniel Lemus dslemusp at gmail.com
Mon Sep 30 15:43:33 CEST 2019


I was able to install it, with limited functionality (I only wanted to use the dis export command on mac). Here in how I installed it

Required Packages

wget fltk fftw uriparser protobuf libxml2 zlib. Be aware where the libraries for libxml2and zlibare installed (in my case /usr/local/opt/)

Download and install PdCom library

$ wget http://etherlab.org/download/pdcom/pdcom-3.0.9.tar.bz2 
$ tar xjf pdcom-3.0.9.tar.bz2
$ cd pdcom-3.0.9
$ ./configure --prefix=/usr/local/etherlab
$ make
$ sudo make install
Clone and install DLS

$ cd /usr/local/etherlab/src/
$ hg clone http://hg.code.sf.net/p/dls/code dls
$ cd dls
$ hg update --rev 872 #Revision tested
Compile and install DLS source code

Modify the file /usr/local/etherlab/src/dls/lib/Zlib.cpp. Replace line 22 from #include <zlib.h>to #include "[path-to-zlib-libraries]/zlib/include/zlib.h"
Modify the file /usr/local/etherlab/src/dls/daemon/ProcMother.cppline 925. Replace ret = bind(_listen_fd, rp->ai_addr, rp->ai_addrlen);by ret = ::bind(_listen_fd, rp->ai_addr, rp->ai_addrlen);
In /usr/local/etherlab/src/dls/daemon/Connection.cppreplace *str = strerror_r(errno, ebuf, sizeof(ebuf))by *str = (char *)strerror_r(errno, ebuf, sizeof(ebuf))in line 158. In function Connection::thread_finished()in line 93 comment out the content of the function and add a return 1;
Add #include <signal.h>to /usr/local/etherlab/src/dls/fltkguis/CtlDialogMain.cpp
Replace line 291 in /usr/local/etherlab/src/dls/tool/Export.cppfrom ret = mkdir(dls_export_dir.c_str());to ret = mkdir(dls_export_dir.c_str(), 0755);
$ ./bootstrap.sh
$ ./configure --prefix=/usr/local/etherlab --with-xml-prefix=[path-to-libxml-libraries]/libxml2 --with-zlib-dir=[path-to-zlib-libraries]/zlib CXXFLAGS=-std=c++11 
$ make
$ sudo make install
If the error configure.ac:47: warning: macro 'AM_PATH_XML2' not found in libraryafter running ./bootstrap.shadd the symbolic link

$ ln -s /usr/local/Cellar/libxml2/<version>/share/aclocal/libxml.m4 /usr/local/share/aclocal/
where <version>is the correspondent libxml version installed in your system (In my case 2.9.9_2) and repeat commands below.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.etherlab.org/pipermail/etherlab-users/attachments/20190930/a68a1f80/attachment-0002.htm>

More information about the Etherlab-users mailing list