Post AUBZFE68uCpiDVXAw4 by chris_spackman@twit.social
 (DIR) More posts by chris_spackman@twit.social
 (DIR) Post #AUBYlNXRF5pqo94Kzw by freemo@qoto.org
       2023-03-31T20:17:02Z
       
       0 likes, 1 repeats
       
       Dumb ass Linux problem... like really dumb...So I clearly have this file in my directory and it is set as executable (pastebin at the bottom)... Yet when i try to run it im told the file doesnt exist... how is this possible....https://pastebin.pl/view/e8f66847#Linux #LinuxHelp #Help
       
 (DIR) Post #AUBZ8d4ZeTYdeCeeCu by realcaseyrollins@social.freetalklive.com
       2023-03-31T20:21:21Z
       
       0 likes, 0 repeats
       
       @freemo Hmm...perhaps there's a symlink issue happening? Or your hard drive is corrupted somehow? I came across something similar once when trying to delete files off my #PLEX server once, turned out there was a weird symlink thing caused by corrupted sectors on the drive
       
 (DIR) Post #AUBZAE8ZKgZqtGHjg8 by idanoo@mastodon.nz
       2023-03-31T20:21:34Z
       
       0 likes, 0 repeats
       
       @freemo Could be built for a different architecture (e.g arm64/amd64/or 32bit)..Try $ file /home/freemo/Downloads/QuPath/QuPathIt should give you some idea
       
 (DIR) Post #AUBZFE68uCpiDVXAw4 by chris_spackman@twit.social
       2023-03-31T20:22:29Z
       
       0 likes, 0 repeats
       
       @freemo Could this be the issue?"If the file does exist in that for (no funny characters), one other possibility is that you're trying to run a 32-bit ELF program on a system that's not correctly set up to run them (i.e., a 64-bit system without the libraries and support infrastructure for 32-bit)."From:https://stackoverflow.com/questions/48179399/zsh-no-such-file-or-directory-error-but-file-exist#Linux #ZShell
       
 (DIR) Post #AUBZFSByVJohveN1yC by freemo@qoto.org
       2023-03-31T20:22:34Z
       
       0 likes, 0 repeats
       
       @realcaseyrollins if it were a symlink the the ls -lha should show it... i doubt the subdirectories are symlinks but ill double check.Corrupted harddrive is possible I suppose but if thats the case this is the only symptom so far.
       
 (DIR) Post #AUBZOjo8NaznAVe7mK by freemo@qoto.org
       2023-03-31T20:24:12Z
       
       0 likes, 0 repeats
       
       @idanoo that is very possible... though would you expect that error for such a situation? Seems the wrong error for that symptom.I do get a weird error when trying to invoke file though...❯ , file QuPathnix: symbol lookup error: /nix/store/nd8dpdgpjkh3g3vvcjx9qdw7mjzz0l90-nix-2.13.3/lib/libnixstore.so: undefined symbol: sqlite3_error_offset
       
 (DIR) Post #AUBZUnpCMBG9Mh2Hdg by freemo@qoto.org
       2023-03-31T20:25:18Z
       
       0 likes, 0 repeats
       
       @chris_spackman That sounds like a distinct possiblity yea.. this program was pre-compiled when i downloaded it... That said its a java program behind the scenes.. .this precompiled binary is some sort of launcher or installer or something....
       
 (DIR) Post #AUBZVmU2pRaFUkbkdU by idanoo@mastodon.nz
       2023-03-31T20:25:28Z
       
       0 likes, 0 repeats
       
       @freemo https://unix.stackexchange.com/questions/330356/no-such-file-or-directory-as-error-for-wrong-architectureLooks like it yeah - Although based on that other error it might be trying to load sqlite3 library 🤔
       
 (DIR) Post #AUBZZFKa20lJpepjEW by freemo@qoto.org
       2023-03-31T20:26:05Z
       
       0 likes, 0 repeats
       
       @idanoo yea, and i think i saw the sqlite error when trying to launch it another way too (though a shell script)
       
 (DIR) Post #AUBZd9oOUeP1sCdxIm by bac@infosec.exchange
       2023-03-31T20:26:50Z
       
       0 likes, 0 repeats
       
       @freemo What interpreter does that file reference? Is there a #! ? Is the path to it correct?
       
 (DIR) Post #AUBZlZgeAsMwRL28hM by freemo@qoto.org
       2023-03-31T20:28:20Z
       
       0 likes, 0 repeats
       
       @bac The file itself is binary, i cant see.. but it came with a shell script which is supposed to launch it (it doesnt) which uses bash interpriter.
       
 (DIR) Post #AUBaCVlgqsgi6aEkPg by chris_spackman@twit.social
       2023-03-31T20:33:12Z
       
       0 likes, 0 repeats
       
       @freemo Are you familiar with 'file' on the command line? > file name-of-file should give you a decent amount of useful info about it
       
 (DIR) Post #AUBaFUXvqqbfBUDs9Y by freemo@qoto.org
       2023-03-31T20:33:45Z
       
       0 likes, 0 repeats
       
       @chris_spackman yes i shared that output later i the thread, take a look
       
 (DIR) Post #AUBagf8gZkbpr8N0Eq by chris_spackman@twit.social
       2023-03-31T20:38:40Z
       
       0 likes, 0 repeats
       
       @freemo Oops, user mastodon error - wasn't looking at the full thread. My bad.Looking at the full thread .... .... I'm all out of ideas.
       
 (DIR) Post #AUBxWuIHfofauLB1Mm by ixn@mastodon.xyz
       2023-04-01T00:54:37Z
       
       0 likes, 0 repeats
       
       @freemo What happens if you use ld.so to execute the file?$ ld.so ./QuPathWith older glibc versions you'd have to use /lib64/ld-linux-x86-64.so.2 instead.
       
 (DIR) Post #AUDGnfxmIhFzfiFqwy by freemo@qoto.org
       2023-04-01T16:05:14Z
       
       0 likes, 0 repeats
       
       @idanoo So i fixed the error file gave, which was unrelated to the main problem... File now shows it is in fact an x64:❯ file ./QuPath ./QuPath: ELF 64-bit LSB pie executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 2.6.18, not stripped
       
 (DIR) Post #AUDGrbk3w9GZjpiLRo by freemo@qoto.org
       2023-04-01T16:05:55Z
       
       0 likes, 0 repeats
       
       @ixn when I run that command it just returns with no outut... hmmm