【SoftEther VPN】——QNAP TS-269 Pro Installation Using Pre-compiled Libraries
本帖最後由 角色 於 2013-4-6 14:59 編輯
目标:安装SoftEther VPN Server与QNAP TS-269 Pro里(Intel X86 Architecture)
引言:
看到其他CHing在Raspberry Pi上能安装SoftEther VPN Server【1】, 那么自己自己也想在QNAP的NAS安装SoftEther VPN Server, 当做make的时候,就产生error message (see Listing 1),问题是我被一些误导信息,以为QNAP TS-269 Pro是64-bit系统,后来因为安装SoftEther的source code是才知道它是32-bit的Linux OS。
用32-bit的pre-compiled libraries去安装(就是一个make command)后,就可以make成功。但是运行./vpnserver start是就出现error message(see Listing 2),参考过【2】文献后,假如下面的environment variable后,问题切底解决:- export GCONV_PATH=/opt/lib/gconv
複製代碼 ##
1) 在第二楼会把整个安装方法写出来,好让大家有一个参考。
2) 如果通过它的日文版的VPN source code,安装都是一样的,主要都是i)要选用32-bit系统,ii)export GCONV_PATH=/opt/lib/gconv。
References:
【1】http://www.telecom-cafe.com/foru ... &extra=page%3D1
【2】http://forum.qnap.com/viewtopic.php?p=24313
Appendices:
Listing 1: Error message when make from the pre-compiled libraries- make[1]: Entering directory `/share/MD0_DATA/.qpkg/Optware/source/softether/vpnserver'
- Preparing SoftEther VPN Server...
- ranlib lib/libcharset.a
- ranlib lib/libcrypto.a
- ranlib lib/libedit.a
- ranlib lib/libiconv.a
- ranlib lib/libintelaes.a
- ranlib lib/libncurses.a
- ranlib lib/libssl.a
- ranlib lib/libz.a
- ranlib code/vpnserver.a
- gcc code/vpnserver.a -O2 -fsigned-char -pthread -m64 -lm -ldl -lrt -lpthread -L./ lib/libssl.a lib/libcrypto.a lib/libiconv.a lib/libcharset.a lib/libedit.a lib/libncurses.a lib/libz.a lib/libintelaes.a -o vpnserver
- code/vpnserver.a: could not read symbols: Archive has no index; run ranlib to add one
- collect2: ld returned 1 exit status
- make[1]: *** [i_read_and_agree_the_license_agreement] Error 1
- make[1]: Leaving directory `/share/MD0_DATA/.qpkg/Optware/source/softether/vpnserver'
複製代碼 ##
Listing 2:Error message when vpnserver ran- [/opt/source/softether/vpnserver] # ./vpnserver start
- -- Alert: SoftEther VPN Kernel --
- String Library Init Failed.
- Please check your locale settings and iconv() libraries.
複製代碼 |