[sword-devel] Running confmaker.pl

pierre amadio amadio.pierre at gmail.com
Fri Jun 22 09:14:55 MST 2018

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

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
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
./configure --prefix=/usr/local/sword --with-clucene --with-curl_sftp
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"

. ~/.bashrc

cd ~/tmp/sword-1.8.1/bindings/swig/package

./configure PKG_CONFIG_PATH=/usr/local/sword/lib/pkgconfig

make perlswig
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
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
#!/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> 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
> 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:i
>>>> nfo 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/
>> Thanks, I fixed this.
>> When I gave confmaker.pl[http://confmaker.pl] an X permission and ran it
>>>> [..]
>> Von: "pierre amadio" <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
>> 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.crosswire.org/pipermail/sword-devel/attachments/20180622/879c7bd9/attachment.html>

More information about the sword-devel mailing list