CBICA / CaPTk

Cancer Imaging Phenomics Toolkit (CaPTk) is a software platform to perform image analysis and predictive modeling tasks. Documentation: https://cbica.github.io/CaPTk
https://www.cbica.upenn.edu/captk
Other
182 stars 65 forks source link

CaPTk 1.9.0 linux installer fails #1498

Open MarkBergman-cbica opened 2 years ago

MarkBergman-cbica commented 2 years ago

Describe the bug The CaPTk 1.9.0 Linux installer fails.

To Reproduce

Download from NITRC.

Call the installed with bash /path/to/installer or chmod the installer to be executable and call it directly.

Same behavior on CentOS7 (multiple environments) Fedora 34

bash ./CaPTk_1.9.0_Installer.bin 
Verifying archive integrity...  100%   All good.
Uncompressing CaPTk Linux Installer  100%  
By installing the Cancer and Phenomics Toolkit (CaPTk), the user agrees to the following licenses, which pertain to the code and its different constituents:

1. CBICA Software License - https://www.med.upenn.edu/cbica/software-agreement.html
2. CBICA Non-Commercial Software License (applies to PHI Estimator) - https://www.med.upenn.edu/cbica/software-agreement-non-commercial.html
3. Insight Toolkit License (Apache 2.0) - https://itk.org/about/#license
4. Visualization Toolkit License (BSD) - https://vtk.org/about/#license
5. Qt Open Source License - https://doc.qt.io/qt-5.10/qtcore-index.html#licenses-and-attributions; our copy can be found at https://github.com/CBICA/qt
6. SRI24 Atlas License (CC Attribution-ShareAlike) - https://creativecommons.org/licenses/by-sa/3.0/us/legalcode 
7. MRIcroGL License (BSD) - https://github.com/rordenlab/MRIcroGL12/blob/master/license.txt
8. YAML-CPP License (MIT) - https://opensource.org/licenses/MIT
9. Eigen License (MPL2) - https://www.mozilla.org/en-US/MPL/2.0/
I accept the terms of the licenses above [Y/N] Y
./linux-makeself: line 280: break: only meaningful in a `for', `while', or `until' loop
Installing to: /datil/home/bergman/Work/Penn/tmp
Creating /datil/home/bergman/Work/Penn/tmp/CaPTk/...
Creating /datil/home/bergman/Work/Penn/tmp/CaPTk/1.9.0/...
Checking disk space...
Checking for FUSE...
fusermount version: 2.9.9
./linux-makeself: line 109: [: !=: unary operator expected
chmod: cannot access '/datil/home/bergman/Work/Penn/tmp/CaPTk/1.9.0/CaPTk-1.9.0.bin': No such file or directory
WARNING: It appears as if something is wrong with your installation. Please make sure there is enough room on your disk, and that CaPTk-1.9.0.bin is present under ./CaPTk

Note that the "missing" file referenced in the error message ('/datil/home/bergman/Work/Penn/tmp/CaPTk/1.9.0/CaPTk-1.9.0.bin': No such file or directory) does exist and is executable and can be run successfully.

waltman commented 2 years ago

I just hit this same error in Ubuntu 20.04:

% ./CaPTk_1.9.0_Installer.bin     
Verifying archive integrity...  100%   All good.
Uncompressing CaPTk Linux Installer  100%  
By installing the Cancer and Phenomics Toolkit (CaPTk), the user agrees to the following licenses, which pertain to the code and its different constituents:

1. CBICA Software License - https://www.med.upenn.edu/cbica/software-agreement.html
2. CBICA Non-Commercial Software License (applies to PHI Estimator) - https://www.med.upenn.edu/cbica/software-agreement-non-commercial.html
3. Insight Toolkit License (Apache 2.0) - https://itk.org/about/#license
4. Visualization Toolkit License (BSD) - https://vtk.org/about/#license
5. Qt Open Source License - https://doc.qt.io/qt-5.10/qtcore-index.html#licenses-and-attributions; our copy can be found at https://github.com/CBICA/qt
6. SRI24 Atlas License (CC Attribution-ShareAlike) - https://creativecommons.org/licenses/by-sa/3.0/us/legalcode 
7. MRIcroGL License (BSD) - https://github.com/rordenlab/MRIcroGL12/blob/master/license.txt
8. YAML-CPP License (MIT) - https://opensource.org/licenses/MIT
9. Eigen License (MPL2) - https://www.mozilla.org/en-US/MPL/2.0/
I accept the terms of the licenses above [Y/N] y
./linux-makeself: line 280: break: only meaningful in a `for', `while', or `until' loop
Installing to: /home/walt/Downloads
Creating /home/walt/Downloads/CaPTk/...
Creating /home/walt/Downloads/CaPTk/1.9.0/...
Checking disk space...
Checking for FUSE...
fusermount3 version: 3.10.5
./linux-makeself: line 109: [: !=: unary operator expected
chmod: cannot access '/home/walt/Downloads/CaPTk/1.9.0/CaPTk-1.9.0.bin': No such file or directory
WARNING: It appears as if something is wrong with your installation. Please make sure there is enough room on your disk, and that CaPTk-1.9.0.bin is present under ./CaPTk
% ls -l /home/walt/Downloads/CaPTk/1.9.0/CaPTk-1.9.0.bin
-rwxr-xr-x 1 walt walt 1641435112 May 28 04:36 /home/walt/Downloads/CaPTk/1.9.0/CaPTk-1.9.0.bin*
mitchellxh commented 1 year ago

Has there been any update to this? Anybody find a fix?

xupengfei1009 commented 1 year ago

I had the same problem. Does anyone have a solution to the problem?

mitchellxh commented 1 year ago

Yes, here's how I installed it on Linux (CentOS 7):

INSTALL_DIR="/my/shared/filesystem"

--open execute permission on appimage and run chmod +x CaPTk_1.9.0_Installer.bin ./CaPTk_1.9.0_Installer.bin --target $INSTALL_DIR

--will get fail statements on line #83 and #109 --remove the entire if statements line #83 and #109 and rerun ./linux_makeself cd $INSTALL_DIR ./linux_makeself

--add execute permissions for the CaPTk dir chmod +rx $INSTALL_DIR/CaPTk -R

--test install captk

Alhonainy21 commented 1 year ago

Hello,

I'm experiencing the same problem on Linux 20.04 as discussed. The current solution isn't fully working for me. Has anyone resolved this recently?

Thanks!

rizvi-ha commented 12 months ago

Any updates on this? Also experiencing this