ArchiveTeam / seesaw-kit

Making a reusable toolkit for writing seesaw scripts
Other
69 stars 30 forks source link

Is not able to find ./wget-lua #95

Closed luckcolors closed 7 years ago

luckcolors commented 8 years ago

Hello. i think this is self explanatory: Looking for Wget+Lua in ./wget-lua ./wget-lua: [Errno 2] No such file or directory: './wget-lua' Looking for Wget+Lua in ./wget-lua-warrior ./wget-lua-warrior: [Errno 8] Exec format error Looking for Wget+Lua in ./wget-lua-local ./wget-lua-local: [Errno 2] No such file or directory: './wget-lua-local' Looking for Wget+Lua in ../wget-lua ../wget-lua: [Errno 2] No such file or directory: '../wget-lua' Looking for Wget+Lua in ../../wget-lua ../../wget-lua: [Errno 2] No such file or directory: '../../wget-lua' Looking for Wget+Lua in /home/warrior/wget-lua /home/warrior/wget-lua: [Errno 2] No such file or directory: '/home/warrior/wget-lua' Looking for Wget+Lua in /usr/bin/wget-lua Found usable Wget+Lua in /usr/bin/wget-lua

luckcolors commented 8 years ago

So my current fix is to place a symlink in /usr/bin/wget-lua but still this shuld not be required.

hannahwhy commented 8 years ago

This bit:

 Looking for Wget+Lua in ./wget-lua
./wget-lua: [Errno 2] No such file or directory: './wget-lua'
Looking for Wget+Lua in ./wget-lua-warrior
./wget-lua-warrior: [Errno 8] Exec format error

means that the wget-lua-warrior executable is not the correct format for your system.

Some projects ship with a wget-lua-warrior executable compiled for 32-bit x86 Linux systems; this is because that's the Warrior VM configuration. (Whether that's an appropriate distribution mechanism is something we can go over in a separate issue.)

However, this doesn't look like a seesaw bug to me; the executable finder is working as designed, and skipping over wget-lua executables that cannot be run.

I'm closing this issue, please comment further if there's more to add.

luckcolors commented 8 years ago

The main problem is that in the folder i had a precompiled wget-lua and it wasn't detected at all as you see in the log ./wget-lua: [Errno 2] No such file or directory: './wget-lua', and the wget-lua i compiled works on the host architecture.

chfoo commented 8 years ago

If you have a precompiled wget-lua, are you executing the script in the same directory as wget-lua? Can you provide a ls -hal and any other info so we have more details