CaPTk icon indicating copy to clipboard operation
CaPTk copied to clipboard

CaPTk 1.9.0 linux installer fails

Open MarkBergman-cbica opened this issue 2 years ago • 6 comments

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.

MarkBergman-cbica avatar Jun 01 '22 19:06 MarkBergman-cbica

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*

waltman avatar Oct 31 '22 14:10 waltman

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

mitchellxh avatar Jan 11 '23 22:01 mitchellxh

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

xupengfei1009 avatar Feb 11 '23 08:02 xupengfei1009

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

mitchellxh avatar Feb 11 '23 15:02 mitchellxh

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!

Alhonainy21 avatar Jul 23 '23 23:07 Alhonainy21

Any updates on this? Also experiencing this

rizvi-ha avatar Nov 29 '23 19:11 rizvi-ha