-
-
Save Rambou/9fc2492deb76c7511eded8f43fa27909 to your computer and use it in GitHub Desktop.
sudo su && git clone git://git.code.sf.net/u/mstowe/winexe u-mstowe-winexe && cd u-mstowe-winexe/source && apt-get -y install python2.7 gcc-mingw-w64 libtevent-dev samba-dev && ln -s /usr/lib/x86_64-linux-gnu/samba/libcli-ldap.so.0 /usr/lib/x86_64-linux-gnu/samba/libcli-ldap-samba4.so.0 ; ln -s /usr/lib/x86_64-linux-gnu/samba/libdcerpc-samba.so.0 /usr/lib/x86_64-linux-gnu/samba/libdcerpc-samba-samba4.so.0 ; ln -s /usr/lib/x86_64-linux-gnu/samba/liberrors.so.0 /usr/lib/x86_64-linux-gnu/samba/liberrors-samba4.so.0 ; ./waf configure build && build/winexe --help |
Checking for library cli-ldap-samba4 : not found
Checking for library :libcli-ldap-samba4.so.0 : yes
Checking for library dcerpc-samba4 : not found
Checking for library :libdcerpc-samba4.so.0 : yes
Checking for library dcerpc-samba-samba4 : not found
Checking for library :libdcerpc-samba-samba4.so.0 : yes
Checking for library samba-errors : yes
Checking for library popt : yes
Checking for library talloc : yes
Checking for library ndr-standard : yes
Checking for library samba-hostconfig : yes
Checking for library samba-credentials : yes
Checking for library smbclient-raw-samba4 : not found
Checking for library :libsmbclient-raw-samba4.so.0 : not found
Build of shared winexe : disabled
Cannot continue! Please either install Samba shared libraries and re-run waf, or download the Samba source code and re-run waf with the "--samba-dir" option.
(complete log in /root/u-mstowe-winexe/source/build/config.log)
May be you help me plzzz
I got this to work eventually - not sure how good the solution is, I was just extrapolating from the script at the top of this post.
apt-get install libsmbclient-dev
ln -s /usr/lib/x86_64-linux-gnu/libsmbclient-raw.so /usr/lib/x86_64-linux-gnu/libsmbclient-raw-samba4.so.0
I also had to edit /usr/include/samba-4.0/util/debug.h, adding in the line:
#include <stdarg.h>
(after the stddef include). I presume this is unimportant, as it's debug code - but it was stopping my building.
Being root, and starting in /root
If it all goes well, you should see the result of build/winexe --help
Next just :
sudo cp build/winexe /usr/bin/
!!!!!!Be carefull and exeute that beein root!!!!!!!