Skip to content
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

./configure not working #43

Open
Tomm-C opened this issue Aug 19, 2024 · 3 comments
Open

./configure not working #43

Tomm-C opened this issue Aug 19, 2024 · 3 comments
Labels
question Question

Comments

@Tomm-C
Copy link

Tomm-C commented Aug 19, 2024

I'm trying to install MRtrix3Tissue on my 2017 MacBook Air (Mac OS 12.7.6).
I have successfully installed all the dependencies listed in the installation guide.
The problem arises when I type the command ./configure in the MRtrix3Tissue directory and get back env: python: No such file or directory. The configure file is in fact present in MRtrix3Tissue directory.

Here the complete script:

`Last login: Mon Aug 19 12:23:05 on ttys000

~ % export PATH='brew --prefix'/opt/qt5/bin:$PATH

~ % cd MRtrix3Tissue

MRtrix3Tissue % ls

CONTRIBUTING.md
icons
Doxyfile
install_mime_types.sh
LICENCE.txt
lib
README.md
matlab
bin
mrtrix-mime.xml
build
mrtrix-mrview.desktop
check_syntax
package_mrtrix
cmd
run_pylint
configure
run_tests
configure.log
set_path
core
share
docs
src
doxygen
testing
generate_bash_completion.py

MRtrix3Tissue % ./configure

env: python: No such file or directory`

My MacBook in booting from an external SSD drive, where I have installed the OS (due to storage space necessities).
If I boot from the built-in drive (running Mac OS 10.15), the ./configure command works but stops when it can't find Qt moc (I believe it's because Qt5 does not install successfully on Mac OS 10.15, requiring a more recent OS).
Can anyone help me with this issue?

Thank You.

@Tomm-C Tomm-C added the question Question label Aug 19, 2024
@burkotOndrej
Copy link

Hello, problem is, that in your environment, there is no such file as python. You can solve it by creating a symbolic link, which will point to your python executable:

sudo ln -s /usr/bin/python3 /usr/bin/python

Note, it is required, that you have successfully installed Python. Your can verify, that you have installed python3 with this command:

python3 --version

In case, you get some output, it means, that Python3 is installed.

I hope it will help you. I'm not sure, if Python is natively installed in /usr/bin/ on macOS, but I think, that this process is pretty straight-forward ☺️

@Tomm-C
Copy link
Author

Tomm-C commented Oct 29, 2024

Hello, thank you for your hint.

python3 --version is in fact giving me an output.

Unfortunately, the line sudo ln -s /usr/bin/python3 /usr/bin/python is giving me the output ln: /usr/bin/python: Operation not permitted

@Tomm-C
Copy link
Author

Tomm-C commented Oct 31, 2024

Solved the issue using sudo python3 configure in the MRtrix3Tissue directory.

(I first tried to set the full disk access option for terminal in the sucurity & privacy menu , but it didn’t work).

I then ran the build script using the same command line.

Side note: the eigen package installed by brew is eigen3.4, which is not compatible with MRtrix3Tissue. To successfully build MRtrix3Tissue it is necessary to downgrade to eigen3.3.9.

Thank you for your suggestions!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Question
Development

No branches or pull requests

2 participants