OCEmu icon indicating copy to clipboard operation
OCEmu copied to clipboard

Wget.lua - Add dlls to compilator

Open tt-thoma opened this issue 3 years ago • 34 comments

I'm trying to download a file from github using wget (wget -f https://raw.githubusercontent.com/IgorTimofeev/MineOS/master/Installer/BIOS.lua /tmp/bios.lua) but wget say Connection refused I tried to allow the emulator on my firewall, but still the same error What can I do ?

Edit: pastebin works normally

tt-thoma avatar Jun 29 '21 07:06 tt-thoma

Well to fix this I would need to know what's the precise error in the first place, if you can send that

zenith391 avatar Jun 29 '21 09:06 zenith391

GitHub refuse any connection from the function internet.request()

tt-thoma avatar Jun 29 '21 11:06 tt-thoma

On my computer, wget -f https://raw.githubusercontent.com/IgorTimofeev/MineOS/master/Installer/BIOS.lua /tmp/bios.lua works correctly alongside using internet.request() for GitHub. Can you open https://raw.githubusercontent.com/IgorTimofeev/MineOS/master/Installer/BIOS.lua in your browser or does it only not work using internet.request() in OCEmu ?

zenith391 avatar Jun 29 '21 13:06 zenith391

Have you tried to do the command in the emulator ?

tt-thoma avatar Jun 29 '21 14:06 tt-thoma

Yes, by on my computer I meant in OCEmu using OpenOS.

zenith391 avatar Jun 29 '21 17:06 zenith391

Can I have your version of OCEmu ? Your README.md is saying that you haven't compiled the current version yet

tt-thoma avatar Jun 30 '21 06:06 tt-thoma

I have the same issue on OCEmu. I think it's a windows issue, because zenith uses linux I think

image

also removing the -f option

image

misiuji avatar Jun 30 '21 07:06 misiuji

It's because @zenith391 have the last version

tt-thoma avatar Jun 30 '21 07:06 tt-thoma

After compiling it says "unsupported protocol"

tt-thoma avatar Jun 30 '21 08:06 tt-thoma

change https:// to http://

misiuji avatar Jun 30 '21 08:06 misiuji

Maybe github refuse connection just because it wants https but there is no https protocol in \src\extras\socket

tt-thoma avatar Jun 30 '21 12:06 tt-thoma

maybe, here is the wget command in a normal terminal image

first request gets 301 Moved Permanently pointing to https url secound request gets 200 ok

misiuji avatar Jun 30 '21 12:06 misiuji

@zenith391 Can you add an https addon ?

tt-thoma avatar Jun 30 '21 12:06 tt-thoma

image Opencomputers ^ OCemu V image The real Openos support https protocol.

tt-thoma avatar Jun 30 '21 12:06 tt-thoma

seems like the install script doesn't install luasec correctly this would explain why this happens only on windows

misiuji avatar Jun 30 '21 12:06 misiuji

image

tt-thoma avatar Jun 30 '21 12:06 tt-thoma

well if you look in /src/extras/ssl there is https.lua that's where it shoud be image

misiuji avatar Jun 30 '21 12:06 misiuji

image I moved it and i'll try to recompilate

tt-thoma avatar Jun 30 '21 12:06 tt-thoma

image this is how internet.lua gets https, but it doesn't find it

misiuji avatar Jun 30 '21 12:06 misiuji

Here we go again...

tt-thoma avatar Jun 30 '21 12:06 tt-thoma

I moved it and i'll try to recompilate

recompiling will on do anything since the OCEmu.exe just calls boot.lua

misiuji avatar Jun 30 '21 12:06 misiuji

if you launch OCEmu via mingw then it works image image

misiuji avatar Jun 30 '21 13:06 misiuji

Ok

tt-thoma avatar Jun 30 '21 13:06 tt-thoma

I think it's not stripping the ssl core correctly, but I can be entirely wrong

misiuji avatar Jun 30 '21 13:06 misiuji

after requiring ssl at boot:

image at the bottom: "cannot find specified module"

manual boot from console works

misiuji avatar Jun 30 '21 13:06 misiuji

ffi file is missing What is it ?

tt-thoma avatar Jun 30 '21 14:06 tt-thoma

it's a lua library https://luajit.org/ext_ffi.html

misiuji avatar Jun 30 '21 14:06 misiuji

Pls have you a tutorial to install I am stuck I have windows 64 bits I try following the readme nothing work I'm tired of solving problems

tt-thoma avatar Jun 30 '21 15:06 tt-thoma

for windows all you have to do is (once you installed msys2) run the script msys2_setup_ocemu.sh with mingw64.exe and hit enter a coupple of times, it should make a file OCEmu.exe in src dir

misiuji avatar Jun 30 '21 15:06 misiuji

there are no libeay32.dll and ssleay32.dll in any of the the bin folders i think that the issue as per this stackoverflow thread

misiuji avatar Jun 30 '21 16:06 misiuji