-
Notifications
You must be signed in to change notification settings - Fork 50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
'ld: symbol(s) not found for architecture x86_64' Problem with compiling the intro_to_forpy.F90 example on MacOS #44
Comments
Ok, that means that it could not link with libpython. Try |
I tried this and I'm getting the error that library wasn't found:
I tried |
Did you activate the conda environment with |
Yes, I have activated my conda environment:
The output:
|
Apparently there is no shared library libpython3.9 in the directory specified by the python3-config output (/usr/local/Caskroom/miniconda/base/envs/data_sc_env/lib/python3.9/config-3.9-darwin). Check if there is a shared library named something like I do not have a macOS machine available, therefore I cannot test the setup with macOS + anaconda myself. It could also be that Python is built without shared library support. |
I get this error: The 'sklearn' PyPI package is deprecated, use 'scikit-learn' |
I'm using the following gfortran:
GNU Fortran (Homebrew GCC 11.3.0_1) 11.3.0
Copyright (C) 2021 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
My python version is 3.9.12 and package manager is conda.
Upon compiling the program with: gfortran intro_to_forpy.F90 forpy_mod.o -fno-lto
python3-config --ldflags
I get the following error:
Could you please help?
Thanking you
Best regards
Sankalp Jena
The text was updated successfully, but these errors were encountered: