Python Forum
Location of python library ?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Location of python library ?
#11
Yes, I tried and it crashed...
The package is called ROOT, like a data analysis framework.Here is the website:
https://root.cern.ch

And I'm trying to follow the instruction from here:
https://root.cern.ch/root/htmldoc/guides...rom-source
this is specifically for setting up the python extension part, I believe people are supposed to finish setting up the environment variables first before doing the configure part.

Here is the general instruction on installing the package from the beginning
https://root.cern.ch/root/htmldoc/guides...ng-started

Really thank you for keeping up with my question ! I appreciate any further insights about this.
Reply
#12
As I know Python is not installed by default in OSX. Have you tried to install it and build ROOT using the system python installation? In order to compile the python bindings, gcc has to know where is python.h file located. C needs this file I am not sure if it's installed if you do not have installed python itself.
You have to install python-dev and python3-dev packages. Or python-devel, python3-devel. And now I am reading that if you install Python, python headers are installed too.

brew install python
"As they say in Mexico 'dosvidaniya'. That makes two vidaniyas."
https://freedns.afraid.org
Reply
#13
...
I don't quiet understand what you said since I don't have much professional knowledge about these things.
Of course I have Python installed... What do you mean by "using the system python installation" ?
Yes, the first option I used in my command is to include the path to Python.h.
and this is my command:
./configure macosx64 --with-python-incdir=/Users/username/anaconda3/pkgs/python-3.5.2-0/include/python3.5m/ --with-python-libdir=/Users/username/anaconda3/pkgs/python-3.5.2-0/lib/
the first path is what includes Python.h and the second path is what includes libpython3.5m.dylib
The problem is it always crash at the next stage(make command).
Are you suggesting I reinstall python and try a different path from the new Python or something ?
Reply
#14
Quote:Do you have any idea about whether it's ok to just use path to my .dylib file instead ?
What's to stop you from trying?
Reply
#15
Can you post the error you get?
It seems that you are doing it right but I am not a professional too.
"As they say in Mexico 'dosvidaniya'. That makes two vidaniyas."
https://freedns.afraid.org
Reply
#16
Not quite sure what you mean but I didn't find a library file with extension .so.

Mostly something like this:
...

Error:
cint/reflex/src/Union.o cint/reflex/src/UnionBuilder.o cint/reflex/src/VariableBuilder.o -ldl -Llib -lCore -lCint ld: library not found for -lCore clang: error: linker command failed with exit code 1 (use -v to see invocation) make: *** [lib/libReflex.dylib] Error 1
it's completely nonsense to me...
Reply
#17
It seems like it looks for .o file. Dodgy

Have you tried to install it with macports?
"As they say in Mexico 'dosvidaniya'. That makes two vidaniyas."
https://freedns.afraid.org
Reply
#18
https://root.cern.ch/root/html514/exampl...2.txt.html
Here are some development notes from cern on root. The error you are getting
is mentioned. I am not going to try and decipher all of this, but it may be of help.
also, copy your error message verbatim and google it.

That's what I did to find this output. There's a lot more on the google page: https://www.google.com/#q=cint/reflex/sr...-lCint&*
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Wrong pip3 python location or new Version 007fred50 1 3,741 Apr-02-2020, 02:36 PM
Last Post: philgoetz
  PyInstaller, how to create library folder instead of library.zip file ? harun2525 2 4,740 May-06-2017, 11:29 AM
Last Post: harun2525

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020