$ tar xvfz stone-2.1u.tar.gz $ cd stone-2.1u $ make linux-ssl |
$ su
# ./stone -o nobody -g nobody -l server:443 443 &
./stone: error while loading shared libraries: libssl.so.0.9.6: \
cannot load shared object file: No such file or directory
|
# ldd /usr/local/sbin/stone
libpthread.so.0 => /lib/libpthread.so.0 (0x4001a000)
libssl.so.0.9.6 => not found
libcrypto.so.0.9.6 => not found
libc.so.6 => /lib/libc.so.6 (0x40030000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)
|
# LD_LIBRARY_PATH=/usr/local/ssl/lib ./stone -o nobody -g nobody -l server:443 443 & |
$ su # install -m 511 stone /usr/local/sbin # install -m 644 stone.1 /usr/local/man/man1 # install -m 644 stone.1.ja /usr/local/man/ja_JP.ujis/man1 # exit |
$ tar xvfz stone-2.1a.tar.gz $ cd stone-2.1a |
$ make run make with one of the following arguments linux ; for Linux bsd ; for FreeBSD or BSD/OS sun ; for SunOS 4.x with gcc solaris ; for Solaris with gcc hp ; for HP-UX with gcc irix ; for IRIX win ; for Windows 96/NT with VC++ emx ; for OS/2 with EMX using POP -> APOP conv., add '-pop' (example: linux-pop) using above conv. and OpenSSL, add '-ssl' (example: linux-ssl) |
$ make linux-ssl make TARGET=linux ssl_stone make[1]: Entering directory `/usr/local/src/stone-2.1a' make[1]: *** No rule to make target `md5c.o', needed by `ssl_stone'. Stop. make[1]: Leaving directory `/usr/local/src/stone-2.1a' make: *** [linux-ssl] Error 2 |
$ cp ../MD5/md5c.o . <--- ディレクトリは適宜修正のこと
$ make linux-ssl
make TARGET=linux ssl_stone
make[1]: Entering directory `/usr/local/src/stone-2.1a'
make FLAGS="-DUSE_POP -DUSE_SSL -I/usr/local/ssl/include" LIBS="md5c.o -L/usr/local/ssl/lib
-lssl -lcrypto" linux
make[2]: Entering directory `/usr/local/src/stone-2.1a'
make FLAGS="-DINET_ADDR -DCPP='\"/usr/bin/cpp -traditional\"' -DUSE_POP -DUSE_SSL
-I/usr/local/ssl/include" stone
make[3]: Entering directory `/usr/local/src/stone-2.1a'
cc -DINET_ADDR -DCPP='"/usr/bin/cpp -traditional"' -DUSE_POP -DUSE_SSL -I/usr/local/ssl/include
-o stone stone.c md5c.o -L/usr/local/ssl/lib -lssl -lcrypto
make[3]: Leaving directory `/usr/local/src/stone-2.1a'
make[2]: Leaving directory `/usr/local/src/stone-2.1a'
make[1]: Leaving directory `/usr/local/src/stone-2.1a'
|
$ make clean $ make linux-pop make TARGET=linux pop_stone make[1]: Entering directory `/usr/local/src/stone-2.1a' make[1]: *** No rule to make target `md5c.o', needed by `pop_stone'. Stop. make[1]: Leaving directory `/usr/local/src/stone-2.1a' make: *** [linux-pop] Error 2 $ cp ../MD5/md5c.o . $ make linux-pop make TARGET=linux pop_stone make[1]: Entering directory `/usr/local/src/stone-2.1a' make FLAGS="-DUSE_POP" LIBS="md5c.o" linux make[2]: Entering directory `/usr/local/src/stone-2.1a' make FLAGS="-DINET_ADDR -DCPP='\"/usr/bin/cpp -traditional\"' -DUSE_POP" stone make[3]: Entering directory `/usr/local/src/stone-2.1a' cc -DINET_ADDR -DCPP='"/usr/bin/cpp -traditional"' -DUSE_POP -o stone stone.c md5c.o stone.c:236: global.h: No such file or directory stone.c:237: md5.h: No such file or directory make[3]: *** [stone] Error 1 make[3]: Leaving directory `/usr/local/src/stone-2.1a' make[2]: *** [linux] Error 2 make[2]: Leaving directory `/usr/local/src/stone-2.1a' make[1]: *** [pop_stone] Error 2 make[1]: Leaving directory `/usr/local/src/stone-2.1a' make: *** [linux-pop] Error 2 |
POP_FLAGS= -DUSE_POP -I../MD5
~~~~~~~~ MD5 のインストールディレクトリを指定
POP_LIBS= ../MD5/md5c.o
~~~~~~~ MD5 のインストールディレクトリを指定
|
$ su # ./stone-ssl pop.hoge.co.jp:pop/apop localhost:pop & Feb 5 16:40:47 start (2.1a) [916] Feb 5 16:40:47 stone 3: Can't bind err=98. |
$ su # install -m 511 stone /usr/local/sbin # install -m 644 stone.1 /usr/local/man/man1 # install -m 644 stone.1.ja /usr/local/man/ja_JP.ujis/man1 # exit |