Re: Questions about installing APR
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mark, On 12/7/2010 12:55 PM, Mark Eggers wrote: > man pkg-config > >>From the description of pkg-config: > > The pkg-config program is used to retrieve information about installed > libraries in the system. It is typically used to compile and link against > one or more libraries. > > In short, you don't need to copy the .pc files over. +1 The .so files should be self-contained (other than the series of symlinks created as well) and refer to standard libraries such as libc, etc. It would be worth your time to ensure that the symlinks remain symlinks as you copy them from machine to machine. I think GNU tar can handle symlinks without any special switches, so I recommend using it to grab all the files at once and transfer them to another machine. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkz/0uAACgkQ9CaO5/Lv0PBWhgCcDsIS2il+x7uJDmJ8yvgCAveH iRUAn02iZfv8mIgL4jO70iC9pNcKFt8+ =PTOG -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Questions about installing APR
man pkg-config >From the description of pkg-config: The pkg-config program is used to retrieve information about installed libraries in the system. It is typically used to compile and link against one or more libraries. In short, you don't need to copy the .pc files over. . . . . just my two cents. /mde/ - Original Message From: "Aggarwal, Ajay" To: Tomcat Users List Sent: Tue, December 7, 2010 6:57:19 AM Subject: RE: Questions about installing APR One more question. I was thinking of compiling it on a different machine (call it my build machine) and then copying the necessary files on to the target machines. These target machines are running the same (linux) OS as my build machine. But on my build machine I want to use --prefix=/build/export/mypath and then copy the necessary files to /usr/lib of the target machines. I see following files under /build/export/mypath/lib folder of my build machine. Do I need to copy everything to /usr/lib of target machines? Including pkgconfig folder? ./lib: libtcnative-1.a libtcnative-1.la* libtcnative-1.so@ libtcnative-1.so.0@ libtcnative-1.so.0.1.16* pkgconfig/ The reason I ask is because "pkgconfig/tcnative-1.pc" file contains paths relative to the prefix I used on my build machine. But this prefix is not relevant for target machines. What is the pkgconfig folder used for? -Ajay -Original Message- From: Aggarwal, Ajay [mailto:ajay.aggar...@stratus.com] Thanks for your help. That worked. -Original Message- From: Mark Eggers [mailto:its_toas...@yahoo.com] In RedHat-based Linux distributions (maybe in others), you'll need to install the development packages as well as the base packages. Look for: apr-devel apr-util-devel and install. Then you can do a configure with: ./configure --with-apr=/usr since the apr-1-config (at least that's what it's called on Fedora 14) is in /usr/bin. . . . . just my two cents. /mde/ - Original Message From: "Aggarwal, Ajay" My OS is centos 5.5, which has APR 1.2.7 pre-installed on it. # rpm -qa | grep apr apr-1.2.7-11.el5_3.1 apr-util-1.2.7-11.el5 I am using Tomcat version 6.0.20 and I located tomcat-native.tar.gz under tomcat/bin folder. I extracted the contents and now I am in tomcat/bin/tomcat-native-1.1.16-src/jni/native directory. I have the "configure" script here. ./configure fails Error: configure: error: APR could not be located. Please use the --with-apr option. Not sure why I get above error since I have the "apr" RPM installed (version 1.2.7). I double check for these shared libraries under /usr/lib and they are all there ls /usr/lib/libapr* /usr/lib/libapr-1.so.0 /usr/lib/libapr-1.so.0.2.7 /usr/lib/libaprutil-1.so.0 /usr/lib/libaprutil-1.so.0.2.7 I tried ./configure --with-apr=/usr/lib , but that fails too Error: checking for APR... configure: error: the --with-apr parameter is incorrect. It must specify an install prefix, a build directory, or an apr-config file. So I downloaded APR version 1.4.2 and compiled and installed it with a different prefix=/tmp/myapr Now ./configure --with-apr=/tmp/myapr works fine and I see following line when I start tomcat Loaded APR based Apache Tomcat Native library 1.1.16. APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true]. But I have couple of questions: 1) Is it ok to compile JNI wrapper with APR 1.4.2, but run it with APR 1.2.7 (like I explained above)? 2) Is it ok to use ARP 1.2.7? Or is it strongly recommended to use the latest version, i.e. APR 1.4.2? -Ajay - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Questions about installing APR
One more question. I was thinking of compiling it on a different machine (call it my build machine) and then copying the necessary files on to the target machines. These target machines are running the same (linux) OS as my build machine. But on my build machine I want to use --prefix=/build/export/mypath and then copy the necessary files to /usr/lib of the target machines. I see following files under /build/export/mypath/lib folder of my build machine. Do I need to copy everything to /usr/lib of target machines? Including pkgconfig folder? ./lib: libtcnative-1.a libtcnative-1.la* libtcnative-1.so@ libtcnative-1.so.0@ libtcnative-1.so.0.1.16* pkgconfig/ The reason I ask is because "pkgconfig/tcnative-1.pc" file contains paths relative to the prefix I used on my build machine. But this prefix is not relevant for target machines. What is the pkgconfig folder used for? -Ajay -Original Message- From: Aggarwal, Ajay [mailto:ajay.aggar...@stratus.com] Thanks for your help. That worked. -Original Message- From: Mark Eggers [mailto:its_toas...@yahoo.com] In RedHat-based Linux distributions (maybe in others), you'll need to install the development packages as well as the base packages. Look for: apr-devel apr-util-devel and install. Then you can do a configure with: ./configure --with-apr=/usr since the apr-1-config (at least that's what it's called on Fedora 14) is in /usr/bin. . . . . just my two cents. /mde/ - Original Message From: "Aggarwal, Ajay" My OS is centos 5.5, which has APR 1.2.7 pre-installed on it. # rpm -qa | grep apr apr-1.2.7-11.el5_3.1 apr-util-1.2.7-11.el5 I am using Tomcat version 6.0.20 and I located tomcat-native.tar.gz under tomcat/bin folder. I extracted the contents and now I am in tomcat/bin/tomcat-native-1.1.16-src/jni/native directory. I have the "configure" script here. ./configure fails Error: configure: error: APR could not be located. Please use the --with-apr option. Not sure why I get above error since I have the "apr" RPM installed (version 1.2.7). I double check for these shared libraries under /usr/lib and they are all there ls /usr/lib/libapr* /usr/lib/libapr-1.so.0 /usr/lib/libapr-1.so.0.2.7 /usr/lib/libaprutil-1.so.0 /usr/lib/libaprutil-1.so.0.2.7 I tried ./configure --with-apr=/usr/lib , but that fails too Error: checking for APR... configure: error: the --with-apr parameter is incorrect. It must specify an install prefix, a build directory, or an apr-config file. So I downloaded APR version 1.4.2 and compiled and installed it with a different prefix=/tmp/myapr Now ./configure --with-apr=/tmp/myapr works fine and I see following line when I start tomcat Loaded APR based Apache Tomcat Native library 1.1.16. APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true]. But I have couple of questions: 1) Is it ok to compile JNI wrapper with APR 1.4.2, but run it with APR 1.2.7 (like I explained above)? 2) Is it ok to use ARP 1.2.7? Or is it strongly recommended to use the latest version, i.e. APR 1.4.2? -Ajay - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Questions about installing APR
Thanks for your help. That worked. -Original Message- From: Mark Eggers [mailto:its_toas...@yahoo.com] Sent: Thursday, December 02, 2010 4:27 PM To: Tomcat Users List Subject: Re: Questions about installing APR In RedHat-based Linux distributions (maybe in others), you'll need to install the development packages as well as the base packages. Look for: apr-devel apr-util-devel and install. Then you can do a configure with: ./configure --with-apr=/usr since the apr-1-config (at least that's what it's called on Fedora 14) is in /usr/bin. . . . . just my two cents. /mde/ - Original Message From: "Aggarwal, Ajay" To: Tomcat Users List Sent: Thu, December 2, 2010 1:08:38 PM Subject: Questions about installing APR My OS is centos 5.5, which has APR 1.2.7 pre-installed on it. # rpm -qa | grep apr apr-1.2.7-11.el5_3.1 apr-util-1.2.7-11.el5 I am using Tomcat version 6.0.20 and I located tomcat-native.tar.gz under tomcat/bin folder. I extracted the contents and now I am in tomcat/bin/tomcat-native-1.1.16-src/jni/native directory. I have the "configure" script here. ./configure fails Error: configure: error: APR could not be located. Please use the --with-apr option. Not sure why I get above error since I have the "apr" RPM installed (version 1.2.7). I double check for these shared libraries under /usr/lib and they are all there ls /usr/lib/libapr* /usr/lib/libapr-1.so.0 /usr/lib/libapr-1.so.0.2.7 /usr/lib/libaprutil-1.so.0 /usr/lib/libaprutil-1.so.0.2.7 I tried ./configure --with-apr=/usr/lib , but that fails too Error: checking for APR... configure: error: the --with-apr parameter is incorrect. It must specify an install prefix, a build directory, or an apr-config file. So I downloaded APR version 1.4.2 and compiled and installed it with a different prefix=/tmp/myapr Now ./configure --with-apr=/tmp/myapr works fine and I see following line when I start tomcat Loaded APR based Apache Tomcat Native library 1.1.16. APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true]. But I have couple of questions: 1) Is it ok to compile JNI wrapper with APR 1.4.2, but run it with APR 1.2.7 (like I explained above)? 2) Is it ok to use ARP 1.2.7? Or is it strongly recommended to use the latest version, i.e. APR 1.4.2? -Ajay - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Questions about installing APR
In RedHat-based Linux distributions (maybe in others), you'll need to install the development packages as well as the base packages. Look for: apr-devel apr-util-devel and install. Then you can do a configure with: ./configure --with-apr=/usr since the apr-1-config (at least that's what it's called on Fedora 14) is in /usr/bin. . . . . just my two cents. /mde/ - Original Message From: "Aggarwal, Ajay" To: Tomcat Users List Sent: Thu, December 2, 2010 1:08:38 PM Subject: Questions about installing APR My OS is centos 5.5, which has APR 1.2.7 pre-installed on it. # rpm -qa | grep apr apr-1.2.7-11.el5_3.1 apr-util-1.2.7-11.el5 I am using Tomcat version 6.0.20 and I located tomcat-native.tar.gz under tomcat/bin folder. I extracted the contents and now I am in tomcat/bin/tomcat-native-1.1.16-src/jni/native directory. I have the "configure" script here. ./configure fails Error: configure: error: APR could not be located. Please use the --with-apr option. Not sure why I get above error since I have the "apr" RPM installed (version 1.2.7). I double check for these shared libraries under /usr/lib and they are all there ls /usr/lib/libapr* /usr/lib/libapr-1.so.0 /usr/lib/libapr-1.so.0.2.7 /usr/lib/libaprutil-1.so.0 /usr/lib/libaprutil-1.so.0.2.7 I tried ./configure --with-apr=/usr/lib , but that fails too Error: checking for APR... configure: error: the --with-apr parameter is incorrect. It must specify an install prefix, a build directory, or an apr-config file. So I downloaded APR version 1.4.2 and compiled and installed it with a different prefix=/tmp/myapr Now ./configure --with-apr=/tmp/myapr works fine and I see following line when I start tomcat Loaded APR based Apache Tomcat Native library 1.1.16. APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true]. But I have couple of questions: 1) Is it ok to compile JNI wrapper with APR 1.4.2, but run it with APR 1.2.7 (like I explained above)? 2) Is it ok to use ARP 1.2.7? Or is it strongly recommended to use the latest version, i.e. APR 1.4.2? -Ajay - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org