Próbował to już ktoś, coś. Zastanawiam się, czy może na virtualu odpalić sobie serwer Ubuntu, bo lubię, czy instalować natywnego debiana @Silas Mariusz ;-)
nie wiem jak będzie np z wydajnością
nie wiem jak będzie np z wydajnością
Dzięki @Silas Mariusz za stworzenie tematubuild-essential
libssl-dev (DHX auth aka DHCAST128)
libgcrypt11-dev (DHX2 auth)
libkrb5-dev (Kerberos V auth)
libpam0g-dev (PAM)
libwrap0-dev (TCP Wrapper)
libdb-dev (dbd CNID backend)
libmysqlclient-dev (mysql CNID backend)
libavahi-client-dev (Bonjour support)
libacl1-dev (ACL support)
libldap2-dev (enhanced ACL support)
systemtap-sdt-dev (DTrace-compatible)
libdbus-1-dev (used by afpstats command)
libdbus-glib-1-dev (used by afpstats command)
libglib2.0-dev (used by afpstats command)
Zaskocze Cię bo w takim wypadku najlepiej byłoby to uruchomić na natywnym Debianie i zainstalować Netatalk z repo apt.Pewnie trzeba by w tym pogrzebać, ja jestem za cienki. Patrząc na instrukcję z Ubuntu potrzebuje takich bibliotek.
Install Netatalk 3.1.1 on Ubuntu 13.10 Saucy - Netatalk Wiki
build-essential
libssl-dev (DHX auth aka DHCAST128)
libgcrypt11-dev (DHX2 auth)
libkrb5-dev (Kerberos V auth)
libpam0g-dev (PAM)
libwrap0-dev (TCP Wrapper)
libdb-dev (dbd CNID backend)
libmysqlclient-dev (mysql CNID backend)
libavahi-client-dev (Bonjour support)
libacl1-dev (ACL support)
libldap2-dev (enhanced ACL support)
systemtap-sdt-dev (DTrace-compatible)
libdbus-1-dev (used by afpstats command)
libdbus-glib-1-dev (used by afpstats command)
libglib2.0-dev (used by afpstats command)
chroot /cross86
apt-get install netatalk
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
libcupsys2 libslp1
Suggested packages:
cupsys-common slpd openslp-doc tetex-bin quota timeout
Recommended packages:
rc db4.2-util
The following NEW packages will be installed:
libcupsys2 libslp1 netatalk
0 upgraded, 3 newly installed, 0 to remove and 2 not upgraded.
Need to get 717kB/950kB of archives.
After unpacking 2531kB of additional disk space will be used.
Do you want to continue [Y/n]?
ipkg list | grep netatalk
?netatalk - 2.2.0-2 - Apple talk networking daemon.
Nie dam się zaskoczyć, pisałem o tym już w innym wątku, że wersja 2 jest już od dawna przestarzała i chyba od wersji OS X z leonem, czyli w sumie od OS X 10.7 zaczęły się schody z autentykacją.netatalk - 2.2.0-2 - Apple talk networking daemon.
$ git clone -b develop git://git.code.sf.net/p/netatalk/code netatalk-code
Chapter 2. InstallationU mnie to wychodzi coś takiegoAs of Netatalk 3.0 the following operating systems are supported: * FreeBSD * Linux * OpenBSD * NetBSD * Solaris and derivates
[/share/Public] # cd netatalk-3.1.0
oconfre/Public/netatalk-3.1.0] # ./configure --with-init-style=debian --with-zer
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... ./install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... no
checking whether to enable maintainer-specific portions of Makefiles... yes
checking for gawk... (cached) awk
checking for gcc... no
checking for cc... no
checking for cl.exe... no
configure: error: in `/share/Public/netatalk-3.1.0':
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details
ipkg install optware-devel openssl libdb2 libgcrypt
./configure --prefix=/opt --with-bdb=/opt --with-libgcrypt-dir=/opt --with-ssl-dir=/opt --without-shadow --without-ldap --enable-afp3 --enable-ddp --enable-timelord --enable-a2boot --disable-quota --disable-tcp-wrappers --disable-shared --enable-static
make && make install
libtool
a tym samym autoconf
, automake
i m4
.i mam problemy z skompilowaniem Netatalk 3.1.1. Mają skopanego libtool'a...libtool (GNU libtool) 2.4
Autoconf 2.13 chosen by Debian wrapper script.
automake (GNU automake) 1.10
m4 (GNU M4) 1.4.10
configure: error: Berkeley DB library required but not found!
Pamiętaj aby mieć wyłączone zaawansowane prawa folderów w QNAP'ie.Póki co zainstalowałem tego Twojego natywa. Spróbuję się tam pobawić, zobaczymy jaka będzie wydajność
A zainstalowałeś libdb52 ?A przy ./configure na qnapie wyszło miconfigure: error: Berkeley DB library required but not found!
ipkg install libdb52
--with-db=/opt
gawk: ./confyOwTE4/subs.awk:2: S["/; s/!.*/"]=am__EXEEXT_FALSE!%!_!# ""
gawk: ./confyOwTE4/subs.awk:2: ^ syntax error
gawk: ./confyOwTE4/subs.awk:3: S["/; s/!.*/"]=am__EXEEXT_FALSE!%!_!# ""
gawk: ./confyOwTE4/subs.awk:3: ^ syntax error
gawk: ./confyOwTE4/subs.awk:4: S["/; s/!.*/"]=am__EXEEXT_TRUE!#%!_!# "#"
gawk: ./confyOwTE4/subs.awk:4: ^ syntax error
gawk: ./confyOwTE4/subs.awk:4: S["/; s/!.*/"]=LTLIBOBJS!%!_!# ""
gawk: ./confyOwTE4/subs.awk:4: ^ syntax error
gawk: ./confyOwTE4/subs.awk:5: S["/; s/!.*/"]=LTLIBOBJS!%!_!# ""
gawk: ./confyOwTE4/subs.awk:5: ^ syntax error
gawk: ./confyOwTE4/subs.awk:5: S["/; s/!.*/"]=LIBOBJS!%!_!# ""
gawk: ./confyOwTE4/subs.awk:5: ^ syntax error
gawk: ./confyOwTE4/subs.awk:6: S["/; s/!.*/"]=LIBOBJS!%!_!# ""
gawk: ./confyOwTE4/subs.awk:6: ^ syntax error
gawk: ./confyOwTE4/subs.awk:6: S["/; s/!.*/"]=AM_BACKSLASH!\%!_!# "\\"
gawk: ./confyOwTE4/subs.awk:6: ^ backslash not last character on line
gawk: ./confyOwTE4/subs.awk:6: S["/; s/!.*/"]=AM_BACKSLASH!\%!_!# "\\"
gawk: ./confyOwTE4/subs.awk:6: ^ syntax error
config.status: error: could not create Makefile
chroot /cross86 .
mkdir -p /build.tmp
cd /build.tmp
wget http://www.mirrorservice.org/sites/downloads.sourceforge.net/n/ne/netatalk/netatalk/3.1.1/netatalk-3.1.1.tar.gz
tar zxf netatalk-3.1.1.tar.gz
rm netatalk-3.1.1.tar.gz
cd netatalk-3.1.1
apt-get install libdb-dev
TARGET_ARCH=i686
TARGET_CODE=32
TARGET_OS=linux
LIBC_STYLE=glibc
GNU_TARGET_NAME=i686-unknown-linux-gnu
export PKG_CONFIG_PATH="/usr/lib/rtorrent/lib/pkgconfig"
[ ! -d "$PKG_CONFIG_PATH" ] && mkdir -p "$PKG_CONFIG_PATH"
# Destination Prefix
export PREFIX="/opt/netatalk"
# Destination Dirs
TARGET_BINDIR="$PREFIX/bin"
TARGET_LIBDIR="$PREFIX/lib"
TARGET_SBIN="$PREFIX/sbin"
TARGET_INCDIR="$PREFIX/include"
# Environment paths
export PATH="/usr/bin/rtorrent/bin:\
/usr/bin/rtorrent/sbin:\
$TARGET_BINDIR:$TARGET_SBIN:$PATH:\
/bin:\
/sbin:\
/usr/bin:\
/usr/sbin:\
/usr/local/bin:\
/usr/local/sbin:\
/usr/bin/rtorrent/perl/site/bin:\
/usr/bin/rtorrent/perl/bin"
# Define default type of lib linker
export DEV_STATIC=1
export FORCE_UNSAFE_CONFIGURE=1
# Include paths
export TARGET_INCLUDES="-I/usr/bin/rtorrent/include \
-I/usr/bin/rtorrent/include/curl \
-I/usr/bin/rtorrent/include/glib-2.0 \
-I/usr/bin/rtorrent/include/libexslt \
-I/usr/bin/rtorrent/include/libxslt \
-I/usr/bin/rtorrent/include/event2 \
-I/usr/bin/rtorrent/include/libxml2 \
-I/usr/bin/rtorrent/include/ncurses \
-I/usr/bin/rtorrent/include/ncursesw \
-I/usr/bin/rtorrent/include/openssl \
-I/usr/bin/rtorrent/include/sigc++-2.0 \
-I/usr/bin/rtorrent/include/libpng15 \
"
export HOST_MACHINE="$(uname -m)"
export GNU_HOST_NAME="${HOST_MACHINE}-pc-linux-gnu"
export LD_RUN_PATH="$TARGET_LIBDIR"
export LD_LIBRARY_PATH="/usr/bin/rtorrent:/opt/netatalk"
export LIBRARY_PATH="/usr/bin/rtorrent/lib"
export LDFLAGS="-L/usr/bin/rtorrent/lib -Wl,-rpath -Wl,/opt/netatalk -Wl,-rpath-link,/opt/netatalk -Wl,--rpath -Wl,/opt/netatalk -Wl,--rpath-link,/opt/netatalk"
export TARGET_CUSTOM_FLAGS="-O2 -pipe"
export CFLAGS="$MFLAG $TARGET_INCLUDES $TARGET_CUSTOM_FLAGS" #CFLAGS="-g -O2 -Wall $TARGET_INCLUDES"
export CPPFLAGS="$MFLAG $TARGET_INCLUDES $TARGET_CUSTOM_FLAGS" #export CPPFLAGS="-O2 -pipe $TARGET_INCLUDES"
export CXXFLAGS="$MFLAG $TARGET_INCLUDES $TARGET_CUSTOM_FLAGS" #export CXXFLAGS="-g -O2 $TARGET_INCLUDES"
export OPENSSL_CFLAGS="-I/usr/bin/rtorrent/include"
export OPENSSL_LIBDIRS="-L/usr/bin/rtorrent/lib"
export GLIB_CFLAGS="-I/usr/bin/rtorrent/include/glib-2.0 -I/usr/bin/rtorrent/include/glib-2.0/include"
export GLIB_LIBS="-L/usr/bin/rtorrent/lib -lglib-2.0"
ldconfig
EXTRAS="--enable-static --disable-shared"
ARGS="--with-bdb \
--with-ssl-dir=/usr/bin/rtorrent \
--with-libgcrypt-dir=/usr/bin/rtorrent \
--with-gnu-ld --without-shadow \
--without-pam --without-ldap \
--enable-afp3 --enable-ddp \
--enable-timelord --enable-a2boot \
--disable-quota --disable-tcp-wrappers"
cd netatalk-3.1.1
./configure --build=$GNU_HOST_NAME --prefix=$PREFIX $EXTRAS $ARGS
configure
:Compilation summary:
CPPFLAGS = -I$(top_srcdir)/include -I$(top_builddir)/include -I/usr/bin/rtorrent/include -I/usr/bin/rtorrent/include/curl -I/usr/bin/rtorrent/include/glib-2.0 -I/usr/bin/rtorrent/include/libexslt -I/usr/bin/rtorrent/include/libxslt -I/usr/bin/rtorrent/include/event2 -I/usr/bin/rtorrent/include/libxml2 -I/usr/bin/rtorrent/include/ncurses -I/usr/bin/rtorrent/include/ncursesw -I/usr/bin/rtorrent/include/openssl -I/usr/bin/rtorrent/include/sigc++-2.0 -I/usr/bin/rtorrent/include/libpng15 -O2 -pipe
CFLAGS = -D_U_="__attribute__((unused))" -I/usr/bin/rtorrent/include -I/usr/bin/rtorrent/include/curl -I/usr/bin/rtorrent/include/glib-2.0 -I/usr/bin/rtorrent/include/libexslt -I/usr/bin/rtorrent/include/libxslt -I/usr/bin/rtorrent/include/event2 -I/usr/bin/rtorrent/include/libxml2 -I/usr/bin/rtorrent/include/ncurses -I/usr/bin/rtorrent/include/ncursesw -I/usr/bin/rtorrent/include/openssl -I/usr/bin/rtorrent/include/sigc++-2.0 -I/usr/bin/rtorrent/include/libpng15 -O2 -pipe
LIBS = -ldl
PTHREADS:
LIBS =
CFLAGS = -pthread
SSL:
LIBS = -L/lib -L -lcrypto
CFLAGS = -I/include -I/include/openssl
LIBGCRYPT:
LIBS = -L/usr/bin/rtorrent/lib -lgcrypt -lgpg-error
CFLAGS = -I/usr/bin/rtorrent/include
BDB:
LIBS = -ldb-4.6
CFLAGS =
LIBEVENT:
bundled
TDB:
bundled
MySQL:
LIBS = -L/lib/mysql -lmysqlclient -lz -lcrypt -lnsl -lm
CFLAGS = -I/include/mysql
Configure summary:
INIT STYLE:
none
AFP:
Extended Attributes: ad | sys
ACL support: no
Spotlight: no
CNID:
backends: dbd last tdb mysql
UAMS:
DHX ()
DHX2 ()
RANDNUM (afppasswd)
clrtxt ()
guest
Options:
Zeroconf support: no
tcp wrapper support: no
quota support: no
admin group support: yes
valid shell check: yes
cracklib support: no
ACL support: auto
Kerberos support: yes
LDAP support: no
AFP stats via dbus: no
dtrace probes: no
Paths:
Netatalk lockfile: /var/lock/netatalk
Documentation:
Docbook: no
# poniewaz configure maja skopany...
# ... we wszystkich plikach Makefile powstalych z configure
# - a jest ich 61; trzeba zeminic niepoprawnie zadeklarowane wartosci
# w zmiennych SSL_LIBS i SSL_CFLAGS
find . -name Makefile -exec sh -c '
sed -i {} -e "s:-L/lib -L -lcrypto:-L/usr/bin/rtorrent/lib -lcrypto:" ;
sed -i {} -e "s:-I/include -I/include/openssl:-I/usr/bin/rtorrent/include -I/usr/bin/rtorrent/include/openssl:" ;
' \;
make && make install
cd ..
mv netatalk-qnap.tar.gz /opt/
tar zxvf netatalk-qnap.tar.gz
ldd -r /opt/netatalk/sbin/afpd
[/opt] # ldd -r /opt/netatalk/sbin/afpd
undefined symbol: mysql_stmt_init, version libmysqlclient_15 (/opt/netatalk/sbin/afpd)
undefined symbol: mysql_stmt_insert_id, version libmysqlclient_15 (/opt/netatalk/sbin/afpd)
undefined symbol: mysql_real_connect, version libmysqlclient_15 (/opt/netatalk/sbin/afpd)
undefined symbol: mysql_stmt_prepare, version libmysqlclient_15 (/opt/netatalk/sbin/afpd)
undefined symbol: mysql_error, version libmysqlclient_15 (/opt/netatalk/sbin/afpd)
undefined symbol: mysql_stmt_execute, version libmysqlclient_15 (/opt/netatalk/sbin/afpd)
undefined symbol: mysql_stmt_fetch, version libmysqlclient_15 (/opt/netatalk/sbin/afpd)
undefined symbol: mysql_close, version libmysqlclient_15 (/opt/netatalk/sbin/afpd)
undefined symbol: mysql_stmt_store_result, version libmysqlclient_15 (/opt/netatalk/sbin/afpd)
undefined symbol: mysql_stmt_bind_param, version libmysqlclient_15 (/opt/netatalk/sbin/afpd)
undefined symbol: mysql_options, version libmysqlclient_15 (/opt/netatalk/sbin/afpd)
undefined symbol: mysql_query, version libmysqlclient_15 (/opt/netatalk/sbin/afpd)
undefined symbol: mysql_store_result, version libmysqlclient_15 (/opt/netatalk/sbin/afpd)
undefined symbol: mysql_stmt_free_result, version libmysqlclient_15 (/opt/netatalk/sbin/afpd)
undefined symbol: mysql_stmt_bind_result, version libmysqlclient_15 (/opt/netatalk/sbin/afpd)
undefined symbol: mysql_num_rows, version libmysqlclient_15 (/opt/netatalk/sbin/afpd)
undefined symbol: mysql_stmt_num_rows, version libmysqlclient_15 (/opt/netatalk/sbin/afpd)
undefined symbol: mysql_stmt_close, version libmysqlclient_15 (/opt/netatalk/sbin/afpd)
undefined symbol: mysql_errno, version libmysqlclient_15 (/opt/netatalk/sbin/afpd)
undefined symbol: mysql_fetch_row, version libmysqlclient_15 (/opt/netatalk/sbin/afpd)
undefined symbol: mysql_next_result, version libmysqlclient_15 (/opt/netatalk/sbin/afpd)
undefined symbol: mysql_real_escape_string, version libmysqlclient_15 (/opt/netatalk/sbin/afpd)
undefined symbol: mysql_free_result, version libmysqlclient_15 (/opt/netatalk/sbin/afpd)
undefined symbol: mysql_stmt_errno, version libmysqlclient_15 (/opt/netatalk/sbin/afpd)
undefined symbol: mysql_init, version libmysqlclient_15 (/opt/netatalk/sbin/afpd)
linux-gate.so.1 => (0xf773a000)
libkrb5.so.3 => /usr/lib/libkrb5.so.3 (0xf76a8000)
libk5crypto.so.3 => /usr/lib/libk5crypto.so.3 (0xf7683000)
libcom_err.so.2 => /usr/lib/libcom_err.so.2 (0xf767f000)
libresolv.so.2 => /lib/libresolv.so.2 (0xf766d000)
libmysqlclient.so.15 => not found
libcrypt.so.1 => /lib/libcrypt.so.1 (0xf763f000)
libnsl.so.1 => /lib/libnsl.so.1 (0xf7628000)
libm.so.6 => /lib/libm.so.6 (0xf7603000)
libdl.so.2 => /lib/libdl.so.2 (0xf75fe000)
libpthread.so.0 => /lib/libpthread.so.0 (0xf75e7000)
libc.so.6 => /lib/libc.so.6 (0xf74b3000)
libkrb5support.so.0 => /usr/lib/libkrb5support.so.0 (0xf74ab000)
libkeyutils.so.1 => /lib/libkeyutils.so.1 (0xf74a9000)
/lib/ld-linux.so.2 (0xf773b000)
[/opt] #
mv netatalk-libmysql.tar.gz /opt/netatalk/lib/
tar zxvf netatalk-libmysql.tar.gz
rm netatalk-libmysql.tar.gz
# podlinkuj do /lib/mysql
ln -sf /opt/netatalk/lib/mysql /lib/mysql
afpd -D
.# poniewaz configure maja skopany...
# ... we wszystkich plikach Makefile powstalych z configure
# - a jest ich 61; trzeba zeminic niepoprawnie zadeklarowane wartosci
# w zmiennych SSL_LIBS i SSL_CFLAGS
find . -name Makefile -exec sh -c '
sed -i {} -e "s:-L/lib -L -lcrypto:-L/usr/bin/rtorrent/lib -lcrypto:" ;
sed -i {} -e "s:-I/include -I/include/openssl:-I/usr/bin/rtorrent/include -I/usr/bin/rtorrent/include/openssl:" ;
' \;
make && make install
cd ..
Nie za bardzo wywalisz. Jedynie starego możesz wyłączyć a nowego ręcznie skonfigurować i odpalić.Matkobosko Mariuszu, dzięki za kompilację.
Ino teraz się zastanawiam, bo domyślnie jest netatalk w qnapie wersja 2 odpalony, czyli w sumie najsampierw by trzeba tego starego wywalić, coby konfliktów nie było. Normalnie jak się instaluje 3.1.1 to on chyba wywala tą 2. i po restarcie już mamy nowego. A tak to nie wiem co z tym zrobić![]()
A to nie ma Ci działać. To wrzuciłem tylko jako informacje w jaki sposób kompilowałem Netatalk.a to mi nie działa, nie wiem dlaczego
Kod:# poniewaz configure maja skopany... # ... we wszystkich plikach Makefile powstalych z configure # - a jest ich 61; trzeba zeminic niepoprawnie zadeklarowane wartosci # w zmiennych SSL_LIBS i SSL_CFLAGS find . -name Makefile -exec sh -c ' sed -i {} -e "s:-L/lib -L -lcrypto:-L/usr/bin/rtorrent/lib -lcrypto:" ; sed -i {} -e "s:-I/include -I/include/openssl:-I/usr/bin/rtorrent/include -I/usr/bin/rtorrent/include/openssl:" ; ' \; make && make install cd ..