#347

wordnet w/ zb: Pathname issues for application data files

Openspchampopened 5mo ago

I've installed wordnet, using zerobrew

$ zb install wordnet                                                                                                                         
==> Installing wordnet...                                                                                                                                              
==> Resolving dependencies (4 packages)...                                                                                                                             
    • ca-certificates 2026-03-19                                                                                                                                       
    • openssl@3 3.6.2                                                                                                                                                  
    • tcl-tk@8 8.6.17                                                                                                                                                  
    • wordnet 3.1
==> Downloading and installing formulas...
    openssl@3        ✓ installed
    wordnet          ✓ installed
    ca-certificates  ✓ installed
    tcl-tk@8         ✓ installed         
==> Installed 4 packages in 143.76s

When I try to run wn then I see some errors, such that I think might be with regards to pathnames for wordnet dictionaries

$ wn note 
WordNet library error: Can't open datafile(/home/linuxbrew/.linuxbrew/Cellar/wordnet/3.1_2/dict/data.noun)
WordNet library error: Can't open indexfile(/home/linuxbrew/.linuxbrew/Cellar/wordnet/3.1_2/dict/index.noun)
WordNet library error: Can't open datafile(/home/linuxbrew/.linuxbrew/Cellar/wordnet/3.1_2/dict/data.verb)
WordNet library error: Can't open indexfile(/home/linuxbrew/.linuxbrew/Cellar/wordnet/3.1_2/dict/index.verb)
WordNet library error: Can't open datafile(/home/linuxbrew/.linuxbrew/Cellar/wordnet/3.1_2/dict/data.adj)
WordNet library error: Can't open indexfile(/home/linuxbrew/.linuxbrew/Cellar/wordnet/3.1_2/dict/index.adj)
WordNet library error: Can't open datafile(/home/linuxbrew/.linuxbrew/Cellar/wordnet/3.1_2/dict/data.adv)
WordNet library error: Can't open indexfile(/home/linuxbrew/.linuxbrew/Cellar/wordnet/3.1_2/dict/index.adv)
WordNet library warning: Can't open verb example sentence file(/home/linuxbrew/.linuxbrew/Cellar/wordnet/3.1_2/dict/sents.vrb)
WordNet library warning: Can't open verb example sentence index file(/home/linuxbrew/.linuxbrew/Cellar/wordnet/3.1_2/dict/sentidx.vrb)
wn: Fatal error - cannot open WordNet database

The files are apparently available, although not at those pathnames

$ find .local/share/zerobrew/prefix/ -name data.verb
.local/share/zerobrew/prefix/Cellar/wordnet/3.1_2/dict/data.verb

Perhaps this issue could be related to the build configuration? Although I'm honestly completely unfamiliar with homebrew at this time, but I might be somewhat familiar with traditional BSD-based port systems (FreeBSD ports, pkgsrc).

If there could be any advice about how to approach a patch for the build configuration, I'll try to put together a pull request.

Activity

0

No activity yet.