taviso / 123elf

A native port of Lotus 1-2-3 to Linux.
1.16k stars 59 forks source link

Installation gets errors while extracting files #118

Closed naclu02 closed 1 year ago

naclu02 commented 1 year ago

I I installed all the IMG image files, but I get errors while running ./extract.sh file

lucas@Luca-tablet:~/123elf$ ./extract.sh
mkdir: cannot create directory ‘/home/lucas/123elf/share’: File exists
mkdir: cannot create directory ‘/home/lucas/123elf/orig’: File exists
==> Extracting 123UNIX1.IMG tar archive
/usr/bin/tar: This does not look like a tar archive
/usr/bin/tar: Exiting with failure status due to previous errors
==> Extracting 123UNIX2.IMG cpio archive
/usr/bin/cpio: premature end of archive
==> Extracting 123UNIX3.IMG cpio archive
/usr/bin/cpio: premature end of archive
==> Seeking into 123UNIX4.IMG to extract cpio archive
dd: /home/lucas/123elf/123UNIX4.IMG: cannot skip to specified offset
0+0 records in
0+0 records out
0 bytes copied, 0.000175353 s, 0.0 kB/s/usr/bin/cpio:
premature end of archive
==> Extracting 123UNIX5.IMG cpio archive
/usr/bin/cpio: premature end of archive
==> Reconstructing object file
cat: /home/lucas/123elf/share/lotus/123.v10/sysV386/lib/123.o.z_1: No such file or directory
cat: /home/lucas/123elf/share/lotus/123.v10/sysV386/lib/123.o.z_2: No such file or directory

gzip: stdin: unexpected end of file
Failed to decompress object files.
If you see the message "code out of range", gzip is too old.
You can try running ./gzip.sh to build a recent gzip that is known to work.
taviso commented 1 year ago

Interesting, what does file 123UNIX1.IMG say?

Did you download the IMG files from here:

https://archive.org/download/123-unix

naclu02 commented 1 year ago

I did download the files, but I get errors while running the make install command

lucas@Luca-tablet:~/123elf$ make install
cc -freg-struct-return -W -Wall -m32 -O2 -fno-stack-protector -I. -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -D_GNU_SOURCE -I atfuncs -I ttydraw -Wno-unused-parameter -freg-struct-return -W -Wall -m32 -O2 -fno-stack-protector -lc -B. -Wl,-b,coff-i386 -no-pie  coffsyrup.c  -lncurses -ltinfo -lm -o coffsyrup
In file included from coffsyrup.c:4:
/usr/include/stdio.h:27:10: fatal error: bits/libc-header-start.h: No such file or directory
   27 | #include <bits/libc-header-start.h>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make: *** [<builtin>: coffsyrup] Error 1
taviso commented 1 year ago

I think that means you don't have all the dependencies, try sudo apt install gcc-multilib

taviso commented 1 year ago

Note that if this is Ubuntu, you will also need lib32ncurses-dev

naclu02 commented 1 year ago

I fixed the problem after installing these required dependencies and now it's finally working.

taviso commented 1 year ago

Feel free to open an issue if you run into any problems!