jowr / librefprop.so

Create a shared library from the Fortran sources provided by Refprop from NIST. This project provides an alternative to the refprop.dll that comes with the software. Please use the official instructions if possible

Home Page:https://github.com/usnistgov/REFPROP-cmake

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Matlab 64bit installation on Linux (Ubuntu)

m-pas opened this issue · comments

commented

First of all let me thank everyone for all the work done to make Refprop available on Linux.
I installed librefprop following the instructions and successfully ran the Fortran test. Then I tried to do the matlab integration (Matlab R2015b 64bit). I ran make matlab and again followed the instructions. The next step is where I ran into problems.
Running sudo make matlab-install results in:

mv ./matlab/refpropm.m ./matlab/rp_proto64.m /opt/refprop
mv ./matlab/librefprop_thunk_glnxa64.so /opt/refprop
chmod /opt/refprop/*.m /opt/refprop/*.so
chmod: invalid mode: ‘/opt/refprop/refpropm.m’
Try 'chmod --help' for more information.
make: *** [matlab-install] Error 1

However, upon re-running sudo make matlab-install I get a different feedback:

curl http://www.boulder.nist.gov/div838/theory/refprop/LINKING/refpropm.m > ./matlab/refpropm.m.org
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 31730  100 31730    0     0  55333      0 --:--:-- --:--:-- --:--:-- 55375
cp ./matlab/refpropm.m.org ./matlab/refpropm.m
curl http://www.boulder.nist.gov/div838/theory/refprop/LINKING/rp_proto64.m > ./matlab/rp_proto64.m.org
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 51741  100 51741    0     0  86152      0 --:--:-- --:--:-- --:--:-- 86091
cp ./matlab/rp_proto64.m.org ./matlab/rp_proto64.m
mv ./matlab/refpropm.m ./matlab/rp_proto64.m /opt/refprop
mv ./matlab/librefprop_thunk_glnxa64.so /opt/refprop
mv: cannot stat ‘./matlab/librefprop_thunk_glnxa64.so’: No such file or directory
make: *** [matlab-install64] Error 1
rm matlab/refpropm.m.org matlab/rp_proto64.m.org

Every helpful input is greatly appreciated!

The good news is that I will be ready to share pretty soon an improved
workflow for building the REFPROP .so file, which should work for all
versions of REFPROP without any modifications. It is CMake based.

MATLAB also has the ability to read a header instead of dealing with these
thunk files, which will make loading the shared library far more stable on
other platforms. If you are willing to be a beta tester, please email me
at ian.bell@nist.gov

On Thu, Mar 17, 2016 at 6:44 AM, m-pas notifications@github.com wrote:

First of all let me thank everyone for all the work done to make Refprop
available on Linux.
I installed librefprop following the instructions and successfully ran the
Fortran test. Then I tried to do the matlab integration (Matlab R2015b
64bit). I ran make matlab and again followed the instructions. The next
step is where I ran into problems.
Running sudo make matlab-install results in:

mv ./matlab/refpropm.m ./matlab/rp_proto64.m /opt/refprop
mv ./matlab/librefprop_thunk_glnxa64.so /opt/refprop
chmod /opt/refprop/.m /opt/refprop/.so
chmod: invalid mode: ‘/opt/refprop/refpropm.m’
Try 'chmod --help' for more information.
make: *** [matlab-install] Error 1

However, upon re-running sudo make matlab-install I get a different
feedback:

curl http://www.boulder.nist.gov/div838/theory/refprop/LINKING/refpropm.m > ./matlab/refpropm.m.org
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 31730 100 31730 0 0 55333 0 --:--:-- --:--:-- --:--:-- 55375
cp ./matlab/refpropm.m.org ./matlab/refpropm.m
curl http://www.boulder.nist.gov/div838/theory/refprop/LINKING/rp_proto64.m > ./matlab/rp_proto64.m.org
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 51741 100 51741 0 0 86152 0 --:--:-- --:--:-- --:--:-- 86091
cp ./matlab/rp_proto64.m.org ./matlab/rp_proto64.m
mv ./matlab/refpropm.m ./matlab/rp_proto64.m /opt/refprop
mv ./matlab/librefprop_thunk_glnxa64.so /opt/refprop
mv: cannot stat ‘./matlab/librefprop_thunk_glnxa64.so’: No such file or directory
make: *** [matlab-install64] Error 1
rm matlab/refpropm.m.org matlab/rp_proto64.m.org

Every helpful input is greatly appreciated!


You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub
#38

Hey All,
I am now having the exact same issue with exactly the same error. However, I did have it working at first! Then I wanted to move refprop into my home and after I cleaned everything I couldn't get it to work with MATLAB again. I am using 2016a.

Did you manage to get it working?
Kind Regards,
Adam

Did you get an answer? You might be able to contact @ianhbell and participate in his beta testing sessions.

As it turns out, I have a fully working build system now in REFPROP-cmake. A bit of beta testing might not go amiss, but it builds and tests fine for me in MATLAB on OS X and linux.


From: Jorrit Wronski notifications@github.com
Sent: Wednesday, September 21, 2016 12:34:18 AM
To: jowr/librefprop.so
Cc: Bell, Ian (Fed); Mention
Subject: Re: [jowr/librefprop.so] Matlab 64bit installation on Linux (Ubuntu) (#38)

Did you get an answer? You might be able to contact @ianhbellhttps://github.com/ianhbell and participate in his beta testing sessions.

You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://github.com//issues/38#issuecomment-248523970, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ALaZLVEd9BwtsYuVFwKLXfsP_LIjr-n-ks5qsM_qgaJpZM4Hy5h-.