[sword-devel] diatheke was su

Don A. Elbourne Jr. sword-devel@crosswire.org
Thu, 8 Feb 2001 18:47:48 -0600


Troy, (and Chris and all)

Thanks! I changed the buildshare value and I think it worked. I placed
diatheke in my /cgibin and ran it. It could not find mods.conf, so I moved
that file to my cgi-bin/ as well. That worked! If I run diatheke I get:

./diatheke
Diatheke command-line Bible utility and SWORD frontend Version 2.0 by Chris
Little
usage:
 ./diatheke -b [bible] [verse]         (verse lookup)
 ./diatheke -s [book] [word]           (word search)
 ./diatheke -d [dictionary] [word]     (dictionary lookup)
 ./diatheke -c [commentary] [verse]    (commentary lookup)

 To turn Strong's numbers on, add 'n' after the argument '-b'.
 Likewise, add 'f' after '-b' to turn footnotes on.
 Also supported, at the end of the command line are
 format (plain, html, gbf, rtf, or thml(default)) and max-verse (a number
arguments

__________________

Cool. But then if I try something like:

./diatheke kjv John 3:16

I get:

Segmentation fault (core dumped)


Maybe it is not finding my modules. How do I know where to put them? And how
do I tell diatheke where to look? Do I need to append all the *.conf files
into the mods.conf? Or do I put a mods.d directory in my /cgi-bin/ or along
side of it? I could probably try all night with different combinations, so I
figured I'd just ask instead.

in Christ,

Don A. Elbourne Jr.
http://elbourne.org







> -----Original Message-----
> From: owner-sword-devel@crosswire.org
> [mailto:owner-sword-devel@crosswire.org]On Behalf Of Troy A. Griffitts
> Sent: Monday, February 05, 2001 4:34 PM
> To: sword-devel@crosswire.org
> Subject: Re: [sword-devel] diatheke was su
>
>
> Don,
> 	Try,
> 	export
> LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/path/to/where/the/libsword.so/file/lives
> Don't include the filename, just the directory.
> You can also compile diatheke statically.
> This might be better.
> To do this.  CD to where your sword source is.
> edit the Makefile.cfg file
> toggle to value for buildshare
> save and exit
> make clean
> make
>
>
> This will make diatheke compile all the sword code right in the
> executable instead of looking for the shared library at runtime.
>
> Hope this helps.
>
> 	-Troy.
>
>
>
> "Don A. Elbourne Jr." wrote:
> >
> > Paul,
> >
> > Thanks. There is part of my problem. I don't have permissions
> to edit the
> > /etc/ld.so.conf file. Is there any way I can work around this?
> I don't have
> > access to /usr/ either. My directories are down the tree at:
> >
> > /home/sites/site84/
> >
> > When I telnet in, I can navigate up the tree and look at stuff,
> but I can't
> > change anything. But I can do anything I want below /home/sites/site84/
> >
> > thanks for your help. I think I'm getting closer. If nothing else, I am
> > learning a lot in the process.
> >
> > Don A. Elbourne Jr.
> > http://elbourne.org
> >
> > > -----Original Message-----
> > > From: owner-sword-devel@crosswire.org
> > > [mailto:owner-sword-devel@crosswire.org]On Behalf Of Paul Gear
> > > Sent: Monday, February 05, 2001 1:13 PM
> > > To: sword-devel@crosswire.org
> > > Subject: Re: [sword-devel] diatheke was su
> > >
> > >
> > > "Don A. Elbourne Jr." wrote:
> > > >
> > > > OK. Thanks.
> > > >
> > > > Actually, I don't know if I need to do su, because I am just
> > > wanting to run
> > > > Diatheke on my server. If I'm understanding how things work, I
> > > don't even
> > > > need to run "make install" after I have already run "make." Is
> > > this correct?
> > > > After running make I have the libsword.* files.
> > > >
> > > > I then wen on to compile diatheke. I ran make and it seemed to
> > > work fine. I
> > > > moved diatheke, libsword.so, and libsword.a to my /cgi-bin/.
> > >
> > > Don't bother with libsword.a.  Once the program is built, its job is
> > > finished.
> > >
> > > > But when I try
> > > > to run diatheke, I get:
> > > >
> > > > ./diatheke: error in loading shared libraries: libsword.so:
> cannot open
> > > > shared object file: No such file or directory
> > > >
> > > > In my limited knowledge of things, I'm assuming that
> > > libsword.so is looking
> > > > for a "shared object file" and that it or diatheke can not find
> > > it. What is
> > > > it, whet is it and is there a config file somewhere that I can
> > > change to let
> > > > diatheke know where to look?
> > >
> > > Diatheke is the program doing the looking, and libsword.so is what it
> > > can't find.  You can help it find libsword.so by putting the directory
> > > where it lives in /etc/ld.so.conf and running 'ldconfig -v', or by
> > > setting LD_LIBRARY_PATH to include that directory.  I recommend the
> > > former, as it is less error-prone.
> > >
> > > Paul
> > > ---------
> > > "He must become greater; i must become less." - John 3:30
> > > http://www.bigfoot.com/~paulgear
> > >
>