Execution anywhere ?

Asked by kwaito

Hello, sorry to bother you again ;-)

I would like to know if there is a way to execute the tagaini binary anywhere. Now I have to do that when I want to use it:

> cd /path/to/tagaini/exec
> ./tagainijisho-0.2.0

Is there a workaround to do something like this:

> ./path/to/tagaini/exec/tagaini-jisho-0.2.0

If I type that, I have this error: 'kanjidic2 plugin fatal error: failed to find Kanjidic2 database!'

Maybe it is a matter of relative and absolute paths ?

Anyway, tagaini is a great soft, keep it that way !

Question information

Language:
English Edit question
Status:
Answered
For:
Tagaini Jisho Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Gnurou (gnurou) said :
#1

> I would like to know if there is a way to execute the tagaini binary anywhere. Now I have to do that when I want to use it:
>
>> cd /path/to/tagaini/exec
>> ./tagainijisho-0.2.0
>
> Is there a workaround to do something like this:
>
>> ./path/to/tagaini/exec/tagaini-jisho-0.2.0
>
> If I type that, I have this error: 'kanjidic2 plugin fatal error: failed to find Kanjidic2 database!'

Tagaini expects to find the database files (jmdict.db and
kanjidic2.db) in the following locations:
- in the jmdict/ and kanjidic2/ directories of the current directory
(typical scenario if you execute from the source tree)
- in the same directory as the binary (what happens on Windows and Mac
platforms)
- finally, in the $PREFIX/share/tagainijisho directory ($PREFIX being
'/usr' by default)

In your case, I suggest you change the prefix to a place where you
want to install Tagaini (probably somewhere where you have write
permissions) and run the install command:

$ scons prefix=/my/prefix/directory install

If that solution is not good for you, you can also edit your
~/.config/tagaini.net/tagainijisho.conf and add the following
sections:

[JMdict]
database = /path/to/jmdict.db

[kanjidic2]
database = /path/to/kanjidic2.db

Of course, the best solution would be that you (or someone else)
provide a gentoo package so that Tagaini integrates well into your
distribution. ;)

Thanks for doing the early testing anyway, I hope you will enjoy Tagaini.

Can you help with this problem?

Provide an answer of your own, or ask kwaito for more information if necessary.

To post a message you must log in.