[sword-devel] Running confmaker.pl
Tom Sullivan
info at beforgiven.info
Fri Jun 29 14:02:30 MST 2018
Y'all:
First, thanks to Pierre for his long and detailed post.
Second, Debian 9 does come with perl5.24.
Third, here is where I am at: I followed Pierre's instructions on a
virtual machine (Debian 9) and successfully executed his test.
But on my real machine, I had successfully installed Sword in my home
directory. osis2mod, etc. are in /usr/bin. So I duplicated that
installation in a second virtual machine (Debian 9) and attempted to
just do the perl install as:
export LD_LIBRARY_PATH=/home/user/sword-1.8.1/lib
export PKG_CONFIG_PATH=/usr/lib/pkgconfig
export CPPFLAGS="-I/usr/include/sword"
cd /home/user/sword-1.8.1/bindings/swig/package
./autogen.sh
./configure PKG_CONFIG_PATH=/usr/lib/pkgconfig
CPPFLAGS="-I/home/user/sword-1.8.1/include/"
make perlswig
PKG_CONFIG_PATH=/usr/lib/pkgconfig
CPPFLAGS="-I/home/user/sword-1.8.1/include/" make perl_make
cd perl
sudo mkdir -p /usr/local/lib/x86_64-linux-gnu
sudo chown user /usr/local/lib/x86_64-linux-gnu
make install
This did not work. So reverted the VM and I tried the following. **
indicate changed lines.
** cd /home/user/sword-1.8.1/lib
** mkdir pkgconfig
** cp /usr/lib/pkgconfig/sword.pc
/home/spring/sword-1.8.1/lib/pkgconfig/sword.pc
export LD_LIBRARY_PATH=/home/user/sword-1.8.1/lib
** export PKG_CONFIG_PATH=/home/user/sword-1.8.1/lib/pkgconfig
export CPPFLAGS="-I/usr/include/sword"
cd /home/user/sword-1.8.1/bindings/swig/package
./autogen.sh
** ./configure PKG_CONFIG_PATH=/home/user/sword-1.8.1/lib/pkgconfig
CPPFLAGS="-I/home/user/sword-1.8.1/include/"
make perlswig
**PKG_CONFIG_PATH=/home/user/sword-1.8.1/lib/pkgconfig
CPPFLAGS="-I/home/user/sword-1.8.1/include/" make perl_make
cd perl
sudo mkdir -p /usr/local/lib/x86_64-linux-gnu
sudo chown user /usr/local/lib/x86_64-linux-gnu
make install
In each case, I got the message:
perl ~/test.plCan't load
'/usr/local/lib/x86_64-linux-gnu/perl/5.24.1/auto/Sword/Sword.so' for
module Sword:
/usr/local/lib/x86_64-linux-gnu/perl/5.24.1/auto/Sword/Sword.so:
undefined symbol: _ZTIN5sword11ZipCompressE at
/usr/lib/x86_64-linux-gnu/perl/5.24/DynaLoader.pm line 187.
at /usr/local/lib/x86_64-linux-gnu/perl/5.24.1/Sword.pm line 11.
Compilation failed in require at /home/spring/test.pl line 3.
BEGIN failed--compilation aborted at /home/spring/test.pl line 3.
--->> Does anybody have a quick fix for this?
If not, I will have to wipe and reinstall sword, xiphos and others. A
real pain. I have spent some considerable amount of time on this
already. As part of SwordHammer, I would like to put out good modules
according to the new specification. But as things stand now, I cannot
ask users to do what I cannot even do on one brand of Unix much less
other flavors.
--->> I am willing to do my part regarding module submission. But
users should be provided with simple means to do so. It would seem to me
best if somebody successfully installs Sword, that the perl interface
should be baked in and come with any successful installation, just like
osis2mod or xml2gbs.
Thanks all.
Tom
Tom Sullivan
info at BeForgiven.INFO
FAX: 815-301-2835
---------------------
Great News!
God created you, owns you and gave you commands to obey.
You have disobeyed God - as your conscience very well attests to you.
God's holiness and justice compel Him to punish you in Hell.
Jesus Christ became Man, was crucified, buried and rose from the dead
as a substitute for all who trust in Him, redeeming them from Hell.
If you repent (turn from your sin) and believe (trust) in Jesus Christ,
you will go to Heaven. Otherwise you will go to Hell.
Warning! Good works are a result, not cause, of saving trust.
More info is at www.esig.beforgiven.info
Do you believe this? Copy this signature into your email program
and use the Internet to spread the Great News every time you email.
On 06/22/2018 12:14 PM, pierre amadio wrote:
> Hi there !
>
> I am afraid there is no pre packaged perl module for debian (if anyone
> knows this to be wrong, please let us know the name of the package :) ).
> I think it is possible to build things from sources this way so that
> perl can use the sword library on a debian box:
>
> The sword library will be installed in /usr/local/sword
> The perl module in /usr/local/lib/x86_64-linux-gnu/perl/5.24.1/
>
> mkdir -p ~/tmp
> cd ~/tmp
> wget
> http://www.crosswire.org/ftpmirror/pub/sword/source/v1.8/sword-1.8.1.tar.gz
>
> tar xvzf sword-1.8.1.tar.gz
> sudo mkdir /usr/local/sword
> #my regular user is debian, use whatever fits your environment.
> sudo chown debian /usr/local/sword
> sudo apt-get install g++ swig python-all-dev libtool automake autoconf
> libcurl4-openssl-dev libclucene-dev make python-virtualenv libicu-dev git
>
> #### from
> http://wiki.crosswire.org/Tutorial:Compiling_%26_Installing_SWORD#Debian_or_Ubuntu
> PKGS="subversion build-essential autotools-dev pkg-config libz-dev
> libclucene-dev libicu-dev libcurl4-gnutls-dev"
> sudo apt-get install $PKGS -y
> ####
>
>
> cd sword-1.8.1
> ./autogen.sh
> ./configure --prefix=/usr/local/sword --with-clucene --with-curl_sftp
> --enable-examples
> make
> make install
> make install_config
>
> #setting environment variable to use locally installed sword library
> cat >> ~/.bashrc <<EOF
> export PATH=$PATH:/usr/local/sword/bin/
> export LD_LIBRARY_PATH=/usr/local/sword/lib
> export PKG_CONFIG_PATH=/usr/local/sword/lib/pkgconfig
> export CPPFLAGS="-I/usr/local/sword/include/sword"
> EOF
>
> . ~/.bashrc
>
> cd ~/tmp/sword-1.8.1/bindings/swig/package
> ./autogen.sh
>
> ./configure PKG_CONFIG_PATH=/usr/local/sword/lib/pkgconfig
> CPPFLAGS="-I/usr/local/sword/include/"
>
>
> make perlswig
> PKG_CONFIG_PATH=/usr/local/sword/lib/pkgconfig
> CPPFLAGS="-I/usr/local/sword/include/" make perl_make
> cd perl
> #this directory may be different if you are not using a x86_64 version
> of debian.
> sudo mkdir -p /usr/local/lib/x86_64-linux-gnu
> #here too, use your real regular user name instead of debian
> sudo chown debian /usr/local/lib/x86_64-linux-gnu
> make install
> #######################################
>
> I checked perl was able to see the sword module with this simple script:
>
>
> debian at debian:~/tmp/sword-1.8.1/bindings/swig/package/perl$ cat test.pl
> <http://test.pl>
> #!/usr/bin/perl -w
> use Sword;
>
> foreach(@INC) {print $_;print "\n";}
>
> If it worked , it should generate no error message and show you all
> directories in @INC.
>
> Good luck.
>
>
>
>
> On 22 June 2018 at 15:03, Tom Sullivan <info at beforgiven.info
> <mailto:info at beforgiven.info>> wrote:
>
>
> Thank you for the info. I did a search using Synaptic Package
> Manager on "perl" and got massive hits. Searching on "perl bindings"
> returned fewer, but still numerous hits. I do not know enough to
> make a choice and the names did not suggest obvious choices to me.
>
> Is it possible that someone could give me the names of the required
> packages for Debian (or Ubuntu, which might be similar)?
>
> Many thanks.
>
> Tom Sullivan
> info at BeForgiven.INFO
> FAX: 815-301-2835
> ---------------------
> Great News!
> God created you, owns you and gave you commands to obey.
> You have disobeyed God - as your conscience very well attests to you.
> God's holiness and justice compel Him to punish you in Hell.
> Jesus Christ became Man, was crucified, buried and rose from the dead
> as a substitute for all who trust in Him, redeeming them from Hell.
> If you repent (turn from your sin) and believe (trust) in Jesus Christ,
> you will go to Heaven. Otherwise you will go to Hell.
> Warning! Good works are a result, not cause, of saving trust.
> More info is at www.esig.beforgiven.info
> <http://www.esig.beforgiven.info>
> Do you believe this? Copy this signature into your email program
> and use the Internet to spread the Great News every time you email.
>
> On 06/22/2018 08:06 AM, Peter Von Kaehne wrote:
>
> On 21 June 2018 at 20:04, Tom Sullivan
> <info at beforgiven.info
> <mailto:info at beforgiven.info>[mailto:info at beforgiven.info <mailto:info at beforgiven.info>]>
> wrote:
>
>
> The wiki page should have given the URI. It took me a
> long time to find it at
> https://crosswire.org/svn/sword-tools/trunk/modules/conf/ <https://crosswire.org/svn/sword-tools/trunk/modules/conf/>
>
>
> Thanks, I fixed this.
>
> When I gave confmaker.pl
> <http://confmaker.pl>[http://confmaker.pl
> <http://confmaker.pl>] an X permission and ran it [..]
>
>
> Von: "pierre amadio" <amadio.pierre at gmail.com
> <mailto:amadio.pierre at gmail.com>>
> Perl is telling you that it cannot find one module (perl
> library) the script needs, in this case, the Sword module:
>
>
> Indeed. You need the Perl Bindings installed - and if your
> distribution does not package them then either you compile it
> yourself or you skip that step, risking that your module conf
> file will have superfluous OptionFilters enabled.
>
> I did see in the code comments that it appears to take a
> single parameter: The OSIS file. Is this correct?
>
>
> No, there are more options, but once you got it running, simply
> run it wiut parametres and iwill give you a complete usage message.
>
> Peter
>
> _______________________________________________
> sword-devel mailing list: sword-devel at crosswire.org
> <mailto:sword-devel at crosswire.org>
> http://www.crosswire.org/mailman/listinfo/sword-devel
> <http://www.crosswire.org/mailman/listinfo/sword-devel>
> Instructions to unsubscribe/change your settings at above page
>
> ______________________________________________________________________
> This email has been scanned by the Symantec Email Security.cloud
> service.
> For more information please visit http://www.symanteccloud.com
> ______________________________________________________________________
>
>
> _______________________________________________
> sword-devel mailing list: sword-devel at crosswire.org
> <mailto:sword-devel at crosswire.org>
> http://www.crosswire.org/mailman/listinfo/sword-devel
> <http://www.crosswire.org/mailman/listinfo/sword-devel>
> Instructions to unsubscribe/change your settings at above page
>
>
>
> ______________________________________________________________________
> This email has been scanned by the Symantec Email Security.cloud service.
> For more information please visit http://www.symanteccloud.com
> ______________________________________________________________________
>
>
> _______________________________________________
> sword-devel mailing list: sword-devel at crosswire.org
> http://www.crosswire.org/mailman/listinfo/sword-devel
> Instructions to unsubscribe/change your settings at above page
>
More information about the sword-devel
mailing list