joshgoebel / wren-console

A CLI/repl tool for Wren written in pure Wren (aMaP)
MIT License
23 stars 6 forks source link

glib fix #22

Open joshgoebel opened 2 years ago

joshgoebel commented 2 years ago

This one looks important maybe: https://github.com/wren-lang/wren-cli/pull/136/files

clsource commented 3 months ago

Also I receive and error

./wrenc: /lib64/libm.so.6: version `GLIBC_2.29' not found (required by ./wrenc)
wget -c https://ftp.gnu.org/gnu/glibc/glibc-2.29.tar.gz
tar -zxvf glibc-2.29.tar.gz
mkdir glibc-2.29/build
cd glibc-2.29/build
../configure --prefix=/opt/glibc
make 
make install

https://stackoverflow.com/a/73188338

joshgoebel commented 1 month ago

Is there a take away here? I forget how the binaries we publish are linked, but should be easy enough to build the entire wrenc locally as well on most environments - against whatever glibc your distro bundles. I think.

clsource commented 1 month ago

I ended using an old ubuntu version for the glibc

FROM ubuntu:13.04

RUN sed -i 's/archive.ubuntu/old-releases.ubuntu/g' /etc/apt/sources.list
RUN apt-get update
RUN apt-get install build-essential -y

COPY . /wrenc

WORKDIR /wrenc/projects/make/
RUN make config=release_64bit

RUN /wrenc/bin/wrenc -v

# So we can execute commands
# and do not exits
CMD tail -f /dev/null

https://github.com/NinjasCL/wren-baron/tree/main