I want to set up a file server with sftp and virtual account,so i use ProFTPD.
system info:red hat enterprise linux 6.8-x86_64
proftpd info:proftpd-1.3.6
OpenSSL 1.0.1e-fips 11 Feb 2013
error: openssl/rand.h: No such file or directory
what i do:
mkdir /usr/local/proftpd
mkdir /etc/proftpd
cd /usr/local/src
wget ftp://ftp.proftpd.org/distrib/source/proftpd-1.3.6.tar.gz
tar -zxvf proftpd-1.3.6.tar.gz
cd /usr/local/src/proftpd-1.3.6
./configure --prefix=/usr/local/proftpd --sysconfdir=/etc/proftpd --enable-openssl --with-modules=mod_sftp
make
ERROR INFO:
--------------
Build Summary
--------------
Building the following static modules:
mod_ident
mod_quotatab
mod_quotatab_file
mod_sftp
mod_cap
--------------
[root@slave1 proftpd-1.3.6]# make && make install
echo \#define BUILD_STAMP \"`date +"%a %b %e %Y %H:%M:%S %Z"`\" > include/buildstamp.h
cd lib/ && make lib
make[1]: Entering directory `/usr/local/src/proftpd-1.3.6/lib'
gcc -DHAVE_CONFIG_H -DLINUX -I.. -I../include -g2 -O2 -Wall -fno-omit-
........
gcc -DHAVE_CONFIG_H -DLINUX -I.. -I../include -g2 -O2 -Wall -fno-omit-frame-pointer -c table.c
table.c:30:26: error: openssl/rand.h: No such file or directory
table.c: In function ‘tab_get_seed’:
table.c:366: warning: implicit declaration of function ‘RAND_bytes’
make[1]: *** [table.o] Error 1
make[1]: Leaving directory `/usr/local/src/proftpd-1.3.6/src'
make: *** [src] Error 2
Installation
The mod_sftp module is distributed with ProFTPD. For including mod_sftp as a staticly linked module, use:
$ ./configure --enable-openssl --with-modules=mod_sftp ...
Alternatively, mod_sftp can be built as a DSO module:
$ ./configure --enable-dso --enable-openssl --with-shared=mod_sftp ...
Then follow the usual steps:
$ make
$ make install
Note that if the libsodium library is available, mod_sftp will auto-detect this, which enables other supported algorithms. You can ensure that mod_sftp compiles with the libsodium library like so:
$ ./configure --enable-openssl --with-modules=mod_sftp ... \
--with-includes=/path/to/libsodium/include \
--with-libraries=/path/to/libsodium/lib