-
Notifications
You must be signed in to change notification settings - Fork 97
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
ANTS with source needs little update #441
Comments
thanks @Brainarea ! so the change would be to add
to the source instructions? |
Correct! |
This issue is stale because it has been open for 30 days with no activity. |
This issue was closed because it has been inactive for 14 days since being marked as stale. |
Still valid but for a different reason. Copy from run: Seems that it is not on our side though. Would have to dig into the install doc of ANTs.
|
I was trying to install ANTS through sources and it was giving me the following error:
"The unauthenticated git protocol on port 9418 is no longer supported"
I found out that git requires a change in the default url and this is easily done with a git config command.
This is the code that works for me for installing ANTS with source:
ENV ANTSPATH="/opt/ants-latest/bin"
PATH="/opt/ants-latest/bin:$PATH"
LD_LIBRARY_PATH="/opt/ants-latest/lib:$LD_LIBRARY_PATH"
RUN apt-get update -qq
&& apt-get install -y -q --no-install-recommends
cmake
g++
gcc
git
make
zlib1g-dev
&& apt-get clean
&& rm -rf /var/lib/apt/lists/*
&& mkdir -p /tmp/ants/build
&& git config --global url."https://".insteadOf git://
&& git clone https://github.com/ANTsX/ANTs.git /tmp/ants/source
&& cd /tmp/ants/build
&& cmake -DBUILD_SHARED_LIBS=ON -DBUILD_TESTING=OFF /tmp/ants/source
&& make -j1
&& mkdir -p /opt/ants-latest
&& mv bin lib /opt/ants-latest/
&& mv /tmp/ants/source/Scripts/* /opt/ants-latest/bin
&& rm -rf /tmp/ants
Hope this helps!
The text was updated successfully, but these errors were encountered: