nemo icon indicating copy to clipboard operation
nemo copied to clipboard

pgplot vs brew (MACOS)

Open jcldc opened this issue 1 year ago • 15 comments

Here is a way to install pgplot via brew installer on macos computer :

brew install kazuakiyama/pgplot/pgplot

jcldc avatar Feb 19 '25 16:02 jcldc

that's great news. The claim from official brew was that pesky caltech licencing lawyer

teuben avatar Feb 19 '25 18:02 teuben

well, brew installed a lot, including pgplot. configure then found it. the install completely broken, there's bizarry clang error messages, indicating a conflict between my brew based gcc, and the system clang. I switched to "--enable-clang", which fared better. Still some errors for which I'll have to come back to later.

teuben avatar Feb 19 '25 23:02 teuben

Well, I have clang configured by default (on my M4 mac mini), and the installation went flawlessly for me.

jcldc avatar Feb 20 '25 11:02 jcldc

Is your gyrfalcON working now?

teuben avatar Feb 20 '25 15:02 teuben

Yes It's working fine ! I have recompiled NEMO (+falcON) using clang. It's mandatory if I want to use nemolib + falconlib in a python module (on a MAC). This is why I had to install pgplot using brew install ... . I am struggling with @rpath stuffs too, by the way. I am porting my codes, unsio, unsiotools on MAC ARM, it's challenging, especially the python part. I switched from setup.py to pyproject.toml for the python module building.

jcldc avatar Feb 20 '25 15:02 jcldc

You did not run into the missing mm_malloc.h file ? (#173 )

But currently if you would run "make bench5" it should crash because of SIP (#174 )

teuben avatar Feb 20 '25 16:02 teuben

Nope, I did not run into the missing mm_malloc.h file because of this statement which exclude clang compiler:

#if defined(__GNUC__) && !defined(__INTEL_COMPILER)
#  include <mm_malloc.h>
#endif

But, yes make bench5 failed miserably too...

jcldc avatar Feb 20 '25 16:02 jcldc

For bench5 we have 2 solutions as you saw: rpath compiling, or ensuring DYLD_LIBRARY_PATH is present again, which I can do in a fix to the script ( I thought )

teuben avatar Feb 20 '25 16:02 teuben

I also wrote a macron, sorry, macrun script, which sets DYLD_LIBRARY_PATH if it's not present. It does assume $NEMO is present, so it just sources the nemo_start.sh file. what a mess.

teuben avatar Feb 20 '25 16:02 teuben

Crazy things !! It's actually /usr/bin/time command which make crash gyrfalcON.

Try from a terminal (NEMO loaded) the followings commands :

time gyrfalcON

and

/usr/bin/time gyrfalcON

The latter crashes gyrfalcoN !!!

jcldc avatar Feb 20 '25 16:02 jcldc

/usr/bin/time starts a sub process. It must be the reason DYD_LD_LIBRARY_PATH is cleared.

jcldc avatar Feb 20 '25 16:02 jcldc

ah thanks, I'll fix that tonight when I can dig up that mac ! I still will have problems with "make check", there I need macron!

teuben avatar Feb 20 '25 17:02 teuben

or maybe I should call it "siprun"

teuben avatar Feb 20 '25 17:02 teuben

ah thanks, I'll fix that tonight when I can dig up that mac ! I still will have problems with "make check", there I need macron!

macron ? Emmanuel ? Our French president ?

jcldc avatar Feb 20 '25 17:02 jcldc

yup, that guy. I won't make a decision until later when I get home.

teuben avatar Feb 20 '25 18:02 teuben