3Tissue / MRtrix3Tissue

MRtrix3Tissue adds capabilities for 3-Tissue CSD modelling and analysis to a complete version of MRtrix3.
https://3Tissue.github.io
Mozilla Public License 2.0
10 stars 6 forks source link

./configure not working #43

Open Tomm-C opened 3 months ago

Tomm-C commented 3 months ago

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.

burkotOndrej commented 1 month ago

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 :relaxed:

Tomm-C commented 1 month ago

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 commented 4 weeks ago

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!