I appears the conda installation on Linux is not defining LD_LIBRARY_PATH so that the libpyferret library can be found. (At least this is the case with my miniconda-python3 installation on RHEL7.) If you defined the environment variable LD_LIBRARY_PATH to be the directory containing the libpyferret .so library then all works fine.So in the bash shell:export LD_LIBRARY_PATH=/path/to/conda/envs/FERRET/lib/python3.7/site-packages/pyferretKarlOn Tue, Jul 23, 2019 at 3:13 PM saurabh rathore <rohitsrb2020@xxxxxxxxx> wrote:Dear Ryo,G'daythis is my anaconda installation and ferret installation environment:-base * /home/srathore/anaconda3
FERRET /home/srathore/anaconda3/envs/FERRETThis is the error message that I am getting on using external function:-**ERROR in External Function student_t_cutoff:
Dynamic linking call dlopen() returns --
"libpyferret.cpython-37m-x86_64-linux-gnu.so: cannot open shared object file: No such file or directory".this is the the file in the error message which I can see after applying your suggestion. So it seems it is there but not able to open:-./pkgs/pyferret-7.5.0-py37ha0fb077_1/lib/python3.7/site-packages/pyferret/libpyferret.cpython-37m-x86_64-linux-gnu.soDid I mess up with the installation procedure?saurabhOn Tue, Jul 23, 2019 at 5:22 PM saurabh rathore <rohitsrb2020@xxxxxxxxx> wrote:Dear Ryo,Thank you for your reply. I would like to mention the installation process.1) first I installed Anaconda2) then I created an environment named FERRET3) then I installed ferret in this environmentSo if I am correct my anaconda installed in /use/localBut my Ferret is installed in the environment called FERRET rather then base.I don't know that is my installation is having any problem?Cheers SaurabhOn Tue, Jul 23, 2019, 4:58 PM Ryo Furue <furue@xxxxxxxxxx> wrote:Hi Saurabh,On Tue, Jul 23, 2019 at 2:44 PM saurabh rathore <rohitsrb2020@xxxxxxxxx> wrote:"libpyferret.cpython-37m-x86_64-linux-gnu.so: cannot open shared object file: No such file or directory".The error message "No such file or directory" suggests either 1) that the search path doesn't include the directory where the pyferret libraries reside or 2) that the library doesn't exist.To check (1), what do you find from this command?yes? SPAWN env | grep -i ferretTo check (2), go to your anaconda directory. (I don't know where yours is, but mine is under /usr/local/ .) Then, do this$ find . -iname '*pyferret*'I find the library, which is /usr/local/miniconda3/envs/FERRET/lib/python3.6/site-packages/pyferret/libpyferret.cpython-36m-darwin.so .Cheers,Ryo
--REGARDSSaurabh RathoreResearch Scholar (PhD.)Centre For Oceans, Rivers, Atmosphere & Land Science TechnologyIndian Institute Of Technology, Kharagpurcontact :- 91- 8345984434--Karl M. Smith, Ph.D.
JISAO Univ. Wash. and PMEL NOAA
"The contents of this message are mine personally and do
not necessarily reflect any position of the Government
or the National Oceanic and Atmospheric Administration."
Attachment:
imageedit_3_7132257740.png
Description: PNG image