Comments (11)
We fixed this in the forthcoming release due together with April CPU. Meanwhile, please try this workaround:
apk add libstdc++
from liberica.
thank you Nicolas! The instructions are updated to reflect the required packages for various language plugins: https://bell-sw.com/pages/liberica_install_guide-native-image-kit-21.1.0/
from liberica.
Thanks for the quick feedback
from liberica.
Note that on Alpine libstdc++ is not installed by default. To build a mostly static image and avoid this (and other) dependencies in the generated native images a user can provide -H:+StaticExecutableWithDynamicLibC during build time.
from liberica.
You might have closed the bug a bit fast.
You also need to install bash
since the Ruby post_install_hook.sh
requires bash.
Running it causes another issue related to missing development tools. The current documentation doesn't mention anything of the sort.
from liberica.
I guess that should complain about openssl. We definitely need a doc revamp in the area of dependencies on Alpine Linux for the various components installed through tar.gz and gu mechanism. Despite the fact we are working on packaging things into apk, there always is going to be a fraction of users who prefer tar.gz. Let's assume this issue is about that.
from liberica.
I'm trying to make things work right now. When they have, I'll publish the Dockerfile and will let you know about it.
from liberica.
Here it is:
FROM alpine:3
ENV GRAAL_VERSION=21.0.0.2
ENV SUFFIX=linux-x64-musl
ENV GRAAL_FOLDER=bellsoft-liberica-vm-openjdk11-${GRAAL_VERSION}
ENV GRAAL_ARCHIVE=${GRAAL_FOLDER}-${SUFFIX}
ENV TRUFFLERUBY_RECOMPILE_OPENSSL=false
ENV NIK_FOLDER=/opt/nik
ENV PATH=$PATH:${NIK_FOLDER}/languages/ruby/bin
RUN wget https://download.bell-sw.com/vm/${GRAAL_VERSION}/${GRAAL_ARCHIVE}.tar.gz \
&& tar -C / -xzf ${GRAAL_ARCHIVE}.tar.gz \
&& rm ${GRAAL_ARCHIVE}.tar.gz \
&& apk add libstdc++ bash --no-cache \
&& mv ${GRAAL_FOLDER} ${NIK_FOLDER} \
&& export PATH=$PATH:${NIK_FOLDER}/bin \
&& gu install ruby \
&& ${NIK_FOLDER}/languages/ruby/lib/truffle/post_install_hook.sh
- The resulting image is 1.26GB
- I skip the recompilation of Open SSL
from liberica.
Thanks, I'll retry with these instructions and let you know.
from liberica.
It works! I don't know your workflow, do you want me to close the issue or do you want to do it?
from liberica.
thanks Nikolas, please let us know if you bump into something else :)
from liberica.
Related Issues (20)
- Native Image Kit - Fuzzy text with OS Display Scaling HOT 1
- Alpine image causes core dump. HOT 1
- JDK crushed during unit test under IDEA
- ARM M2: JavaFX crashes when second scene opened. HOT 2
- NIK 23 with JavaFX FXML compatibility HOT 5
- Fix CVE-2023-2650 in Alpine Docker images HOT 3
- Upgrade to Alpine 3.18.2 to address OpenSSL CVEs HOT 2
- libprism_es2.so: undefined symbol: glXQueryExtension HOT 3
- Add curl in liberica-runtime-container image HOT 3
- Ugly/Pixellated text on NIK-compiled AWT/Swing app, on Linux, in *some* WMs/DEs HOT 4
- Upgrade liberica-openjdk-alpine:20 to Alpine 3.18.3 to address OpenSSL CVEs HOT 3
- JavaFX Web and Media
- Buildpacks with Java 21 HOT 3
- SubstrateSegfaultHandler caught a segfault in thread 0x00000211435422c0 HOT 1
- Liberica Native Image Kit Container Image for 23 missing?
- Using PGO Instrumentation and G1C via the (new) GraalVM distribution HOT 4
- Release 21.0.1+15 HOT 2
- Question HOT 2
- Liberica NIK runtime NoSuchMethodError and random crashes with EXC_BAD_INSTRUCTION HOT 3
- Upgrade liberica-openjdk-alpine:21 to Alpine 3.18.5 to address OpenSSL CVEs HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from liberica.