Building Subversion 1.5.4 on Debian: Could not find library containing RSA_new

I have been trying to build subversion (on a limited account) for a long time, but with no luck :(

Instructions I follow: http://wiki.dreamhost.com/Subversion_Installation

Launch:

./configure --prefix=${RUN} --without-berkeley-db --with-ssl --with-zlib --enable-shared

Gives me this error:

checking for library containing RSA_new... not found
configure: error: could not find library containing RSA_new
configure failed for neon

Can someone explain to me:

  • Possible reasons for this
  • Possible ways to get around it.
  • Additionally: what are these modules and what is their purpose (Neon / RSA_new)

Thank!

The contents of the log file:

Trying to find interesting bits from the neon config.log file:

configure:27693: gcc -o conftest -g -O2   conftest.c  >&5
/tmp/ccazXdJz.o: In function `main':
/home/stpinst/soft/subversion-1.5.4/neon/conftest.c:93: undefined reference to `RSA_new'
collect2: ld returned 1 exit status
configure:27699: $? = 1
configure: failed program was:
...
| int
| main ()
| {
| RSA_new();
|   ;
|   return 0;
| }
configure:27742: gcc -o conftest -g -O2   conftest.c  -lcrypto  -lz >&5
/usr/bin/ld: cannot find -lcrypto
collect2: ld returned 1 exit status
configure:27748: $? = 1

-

+1
source share
8 answers

Check out my answer here .

+2
source
  • libcrypto.a libcrypto.so
  • install libcrypto, libssl-dev (aptitude install libssl-dev)
  • Neon - WebDAV, subversion; WebDAV - , (http:). RSA - . Neon - configure, , libcrypto.
+9

- . : openssl-0.x.x.tar.gz, , cd

-, ( )

$ ./config shared --prefix=$HOME/installs && make clean && make && make install

$  export CFLAGS= "-O2 -g -I/root/installs/include"
$  export CFLAGS="-O2 -g -I/root/installs/include"
$  export LDFLAGS="-L/root/installs/lib"
$  export CPP="gcc -E -I/root/installs/include"

+

neon

$ ./configure --with-ssl=openssl --prefix=$HOME/installs && make clean && make && make install

subversion

$ ./configure --with-ssl --prefix=$HOME/installs --with-neon=/root/installs/bin/neon-config && make clean && make && make install

: , --with-ssl =/root/installs - .

+4

OpenSSL, --without-ssl ( -with-ssl, ).

+2

Subversion SSL, ?

setenv CC "gcc -I/usr/local/ssl/include -L/usr/local/ssl/lib"
setenv CFLAGS "-O2 -g -I/usr/local/ssl/include"
setenv LDFLAGS "-L/usr/local/ssl/lib"
setenv CPP "gcc -E -I/usr/local/ssl/include"

, RSA_new, , (Debian-Ubuntu- Dapper-Beta2: "apt-get install libssl-dev" ) : aptitude install libssl-dev.

, , .

+1

SSL:

./configure --prefix=${RUN} --without-ssl

:

checking for openssl/opensslv.h... no
configure: error: We require OpenSSL; try --with-openssl
configure failed for serf

:

 ./configure --prefix=${RUN} --with-openssl

:

configure: WARNING: Unrecognized options: --with-openssl
...
configure: error: '--with-openssl requires a path to a directory'
configure failed for serf

: - s

+1

NB: , - .

apt-get install libssl-dev

:

E: Could not open lock file /var/lib/dpkg/lock - open (13 Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?

Calling   aptitude install libssl-dev

:

E: Could not open lock file /var/lib/dpkg/lock - open (13 Permission denied) 
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root

, , , , !:)

0

, , , "configure".

opensl :

wget http://www.openssl.org/source/openssl-0.9.8a.tar.gz
tar zxvf openssl-0.9.8a.tar.gz
cd openssl-0.9.8a
./configure --prefix=${RUN}
make
make install

subversion :

./configure --prefix=${RUN} --without-berkeley-db --with-openssl=$HOME/soft/openssl-0.9.8a

:

configure: WARNING: Unrecognized options: --with-openssl

, , , , :

link: warning: `/usr/lib/gcc/x86_64-linux-gnu/4.1.2/../../..//libsqlite                                                                        3.la' seems to be moved
libtool: link: warning: `/usr/lib/gcc/x86_64-linux-gnu/4.1.2/../../..//libsqlite                                                                        .la' seems to be moved
libtool: link: warning: `/usr/lib/gcc/x86_64-linux-gnu/4.1.2/../../..//libexpat.                                                                        la' seems to be moved
/usr/bin/ld: cannot find -lssl
collect2: ld returned 1 exit status
make[1]: *** [libserf-0.la] Error 1
make[1]: Leaving directory `/mnt/local/home/stpinst/soft/subversion-1.5.4/serf'
make: *** [external-all] Error 1

, , ... - ?

0

Source: https://habr.com/ru/post/1698129/


All Articles