questions > Latest dcm2niix version
Showing 1-2 of 2 posts
Display:
Results per page:
May 16, 2023  09:05 AM | patrick_nm
Latest dcm2niix version
Hi,
I am trying to install the latest dcm2niix version (v1.0.20230411). I have tried several ways, such as using "sudo apt-get install dcm2niix" or by downloading the zip file from github.com/rordenlab/dcm2niix/releases, but when I check the dcm2niix version with "dcm2niix -u" it tells me that I have dcm2niix version v1.0.20181125 (JP2:OpenJPEG) GCC9.3.0 (64-bit Linux) and that there is a newer version available.
What am I doing wrong?

Thanks and best regards!
May 16, 2023  10:05 AM | Chris Rorden
RE: Latest dcm2niix version
The simplest way to get the latest release for Linux is:


curl -fLO https://github.com/rordenlab/dcm2niix/re...
unzip ./dcm2niix_lnx.zip
./dcm2niix

You can then copy the executable ./dcm2niix to your path if you want this version to be your default.


Alternatively, you can compile your own basic versions:

git clone git@github.com:rordenlab/dcm2niix.git
cd dcm2niix/console
make
./dcm2niix

For advanced builds, use CMAKE, as described on the Github home page

git clone https://github.com/rordenlab/dcm2niix.gi...
cd dcm2niix
mkdir build && cd build
cmake -DZLIB_IMPLEMENTATION=Cloudflare -DUSE_JPEGLS=ON -DUSE_OPENJPEG=ON ..
make