veg / hyphy-analyses

HyPhy standalone analyses
MIT License
37 stars 17 forks source link

Could not read command file from 'libv3/all-terms.bf' #43

Closed Joeytbl closed 1 year ago

Joeytbl commented 1 year ago

I am trying to run the hyphy standalone analysis, but some errors unexpectedly occur, does someone know how to solve it?

the details are like this: Error: Could not read command file from 'libv3/all-terms.bf' (expanded to '/share/liaoyuxi/software/hyphy-analyses-master/FitMG94/libv3/all-terms.bf') in call to LoadFunctionLibrary("libv3/all-terms.bf", /share/liaoyuxi/software/hyphy-analyses-master/FitMG94/)

would be very appreciated

Joeytbl commented 1 year ago

already solved

jadamowicz commented 1 year ago

Could you please let me know how you solved this?

spond commented 1 year ago

Dear @jadamowicz,

Files not being found usually indicates that HyPhy can't locate its script library files. It will look for files in

  1. User-specified location (given via LIBPATH=/path/to/files command line argument). By default this is null (not used).
  2. The res subdirectory in the Current working directory
  3. The installation location (default is /usr/local/share/hyphy)

If you have HyPhy installed from source in some non-default directory (e.g. /opt/hyphy), and you call it from a different directory (e.g. /home/sergei/data), then specify LIBPATH= to indicate where to look for "resources" (libarary files).

hyphy LIBPATH=/opt/hyphy/res ...

Best, Sergei

Joeytbl commented 1 year ago

Could you please let me know how you solved this?

just like Sergei said, I added a LIBPATH argument to specify the location of the files