problem with APR (Apache Portable Runtime)

Subscribe to problem with APR (Apache Portable Runtime) 21 post(s), 7 voice(s)

 
Avatar usina 10 post(s)

I have followed the steps in this tutorial http://www.warehouseapp.com/installing/ruby-sub… and I get the following error after i run this command:

./configure—prefix=/usr/local—with-openssl—with-ssl—with-zlib

configure: Apache Portable Runtime (APR) library configuration
checking for APR... yes
checking APR version... 0.9.4
wanted regexes are 0\.9\.[7-9] 0\.9\.1[0-9] 1\.
configure: error: invalid apr version found
 
Avatar Chris K. 4 post(s)

It looks like you need to upgrade your version of the Apache Portable Runtime to at least 0.9.7. You have 0.9.4 currently.

If you’re not sure how to do that, post some more information about your platform and maybe we can help.

 
Avatar usina 10 post(s)

I have CentOS release 4.5 (Final) with Apache 2 and MySQL 5.

It’s enough?. Cheers. Thanks

 
Avatar usina 10 post(s)

dudes, any sugestion? any idea?

cheers

thanks

 
Avatar usina 10 post(s)

I have done an “yum search APR” and found there is no new version (0.9.7) of Apache Portable Runtime for CentOS.

There is a way to use Warehouse with APR 0.9.4?

thanks

 
Avatar MrKurt 35 post(s)

Why are you building Subversion instead of installing it with Yum? There’s no need to build subversion from source.

 
Avatar usina 10 post(s)

I was following the installation guide from here:

http://warehouseapp.com/installing/ruby-subvers…

Can you tell me how to install it using yum?

I ask this to the admins: It’s ok to install Subversion using Yum?

Thanks

 
Avatar MrKurt 35 post(s)

“yum install subversion”

 
Avatar usina 10 post(s)

I did it, but no success. Any other suggestions?
Thanks

[root@24x7hosting swig-1.3.31]# yum install subversion
Setting up Install Process
Setting up repositories
update                    100% |=========================|  951 B    00:00     
base                      100% |=========================| 1.1 kB    00:00     
centosplus                100% |=========================|  951 B    00:00     
addons                    100% |=========================|  951 B    00:00     
extras                    100% |=========================| 1.1 kB    00:00     
Reading repository metadata in from local files
primary.xml.gz             55% |=============            |  64 kB    00:0primary.xml.gz             97% |======================== | 112 kB    00:0primary.xml.gz            100% |=========================| 114 kB    00:00     
centosplus: ################################################## 385/385
Added 28 new packages, deleted 0 old in 3.37 seconds
primary.xml.gz            100% |=========================|  53 kB    00:0primary.xml.gz            100% |=========================|  53 kB    00:00     
extras    : ################################################## 220/220
Added 8 new packages, deleted 0 old in 2.01 seconds
Parsing package install arguments
Nothing to do

 
Avatar MrKurt 35 post(s)

Looks like it’s already installed, just go to the next step then.

 
Avatar usina 10 post(s)

Assuming the next step is to install the Ruby subversion bindings i get this error:

[root@24x7hosting swig-1.3.31]# make swig-rb
make: *** No rule to make target `swig-rb'.  Stop.
[root@24x7hosting swig-1.3.31]# 

waiting for further instructions.

 
Avatar usina 10 post(s)

Any other suggestions?

I really need this working.

 
Avatar CarlosH 10 post(s)

I guess you already installed the swig? I think you really need to compile subversion on your server. Download the apr and apr-util latest version into your subversion folder, and execute ./configure—prefix=/usr/local —with-openssl—with-ssl—with-zlib—with-apx=apx—with-apr-util=apr-util arguments, where apr and apr-util are the locations of the downloaded versions.

 
Avatar Alex Egg 13 post(s)

To avoid the APR error you must install svn in this order:

curl -O http://subversion.tigris.org/downloads/subversi…
curl -O http://subversion.tigris.org/downloads/subversi…
tar xzvf subversion-1.4.5.tar.gz
tar xzvf subversion-deps-1.4.5.tar.gz
cd subversion-1.4.5
./configure—prefix=/usr/local—with-openssl—with-ssl—with-zlib
make
sudo make install

 
Avatar usina 10 post(s)

Alex lots of thanks for your support. When following your steps I get this error:

[root@24x7hosting subversion-1.4.5]# ./configure—prefix=/usr/local—with-openssl—with-ssl—with-zlib
-bash: ./configure—prefix=/usr/local—with-openssl—with-ssl—with-zlib: No such file or directory
[root@24x7hosting subversion-1.4.5]# 

thanks

 
Avatar usina 10 post(s)

I’ve managed to install it, and in the last step i get this error:

[root@24x7hosting subversion-1.4.5]# ruby -e 'puts require("svn/core")'
/usr/lib/ruby/site_ruby/1.8/i386-linux/svn/ext/core.so: libsvn_swig_ruby-1.so.0: cannot open shared object file: No such file or directory - /usr/lib/ruby/site_ruby/1.8/i386-linux/svn/ext/core.so (LoadError)
        from /usr/lib/ruby/site_ruby/1.8/svn/error.rb:1
        from /usr/lib/ruby/site_ruby/1.8/svn/core.rb:4:in `require'
        from /usr/lib/ruby/site_ruby/1.8/svn/core.rb:4
        from -e:1:in `require'
        from -e:1
[root@24x7hosting subversion-1.4.5]# 

Waiting for further instructions.

Thanks in advance guys!

 
Avatar Alex Egg 13 post(s)

Hmm, are you copying the text straight from this page? Because some of the characters get messed up the textile processor or something, see this:

I suggest you delete the subversion source folder you already have and start over with this:

http://pastie.caboo.se/99618

Let me know how it goes…

 
Avatar Shaun Richards 1 post(s)

I also have the same problem. APR was the incorrect version. Installed updated version of apr and apr-utils. Everything compiled and installed fine. I get that same error.

I get this error running make-check-swig.rb

undefined symbol: SSL_load_error_strings - /usr/local/src/subversion-1.4.3/subversion/bindings/swig/ruby/.ext/svn/ext/core.so (LoadError)
 
Avatar Alex Egg 13 post(s)

@Shaun

I was getting that same exact error and I know how to fix it. The newest svn 1.4.5 uses a library called neon and what ever version of neon you have installed is linked to a diff versions of svn then the one you’re running.

Documented here: http://svn.haxx.se/users/archive-2006-06/0670.s…

To fix do this:

cd /usr/local/src
curl -O http://www.webdav.org/neon/neon-0.27.1.tar.gz
tar zxvf neon-0.27.1.tar.gz
cd neon-0.27.1.tar.gz
./configure—with-ssl—with-libs=/usr/local
make
sudo make install

Then download the latest svn 1.4.5 extract it and configure it with the params I provided above including this new one to refrence the new neon we downloaded.

For the whole svn process from scratch, see this pastie:

http://pastie.caboo.se/99772

Good luck.

 
Avatar Alex Egg 13 post(s)

Actually, subversion requires neon 0.25… or else it won’t be included in the build.

 
Avatar imarichardson 3 post(s)

I was experiencing these same errors, as well as having problems installing swig, while insalling on RHEL5. Additionally, while trying to run the installation I found that I was missing several dependencies for APR and neon (i.e., an XML rendering utility).

I documented the entire process here
(http://www.imarichardson.com/2007/11/01/installing-subversion-bindings-for-warehouse-app/)
Hopefully it’ll help someone.