New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
/lib64/libc.so.6: version 'GLIBC_2.25' not found #6071
Comments
same error, cant run directus on docker FROM node:14.17
|
|
Ubuntu 16.04, node 14.17, npm 7.16, rc 73 Same error
|
Make sure to check ranisalt/node-argon2#276 and ranisalt/node-argon2#294. It sounds like you're missing some required components in your host machine for Node to properly be able to build native extensions. This is not something we can address in Directus itself |
install python 3.6 and gcc |
This solved my issue, thank god ahahaha |
This works great for an existing project. Unfortunately, it doest not work for a new project
Results in :
As of some research, GLIBC_2.25 cannot be installed on Centos 7. Is there is a way to install directus anyway ? |
Anyway I manged to install manually. |
If someone is using Directus inside a docker environment, try using In my example these were my dockerfileLines:
|
Just an update that this problem is still here. Directus is incompatible with CentOS 7. |
@neo7-studio-web Did you try installing with |
Yes I did. Didn't work. |
Okay, any particular issue in the build? By building from source, node will require all the development tools (including gcc, make) to be available and at a version that's compatible with the dependencies that use native binaries, like argon2. I'm no CentOS user myself, but assuming all the build dependencies are available, there shouldn't be any reason why Directus itself wouldn't run, as centos is just x86 linux at the end of the day |
I just tried it out on a clean CentOS 7 installation coming from Docker, and assuming you have your dependencies and build tools up to date, it seems to work just fine: On my Mac:
Within the container: yum update -y
yum -y install curl
curl -sL https://rpm.nodesource.com/setup_16.x | bash -
yum install -y nodejs
yum install -y gcc-c++ make
yum install -y centos-release-scl
yum install -y devtoolset-7-gcc*
scl enable devtoolset-7 bash
mkdir my-project
cd my-project
npm init -y
npm i directus --build-from-source
touch .env
vi .env
## Set to:
# KEY=example-centos
# SECRET=my-secret-string
# ADMIN_EMAIL="admin@example.com"
# ADMIN_PASSWORD="password"
# DB_CLIENT="sqlite3"
# DB_FILENAME="./data.db"
##
npx directus bootstrap
npx directus start
This ran as expected on my end @neo7-studio-web |
Thank you for taking all this time to test, I really appreciate. |
I think I found a solution here : ranisalt/node-argon2#276 (comment) Actually I had gcc and gcc-c++ already installed but not kernel-devel Now it works ! |
*wipes sweat PUBLIC_URL should be a full URL > hehe totally no idea |
@curious-monggo FWIW
The environment variable should be a full valid URL, like
Correct, whatever you have configured as the storage location can't be read/written from/to
Yeah! You can run |
Thank you, @rijkvanzanten ! |
Same, mark |
On centos 7.9, I update glibc 2.1 to 2.28 , it works:
I need update GLIBC_2.17 to higher version , recommend Glibc 2.28. First please update gcc ,make,bison ,then install Glibc 2.28):
|
how? |
Doesn't work on WSL 2 either.
I tried a couple of the commands people suggested above, but I'm not a linux person, so I have no idea how to fix this. My system meets your listed requirements, so it seems like you have some requirements that aren't listed? |
Thanks for the tutorial, first it worked, now this link is offline, can you help me? |
Here's what worked for me for on CentOS 7:
# install SCL
sudo yum install centos-release-scl
sudo yum-config-manager --enable rhel-server-rhscl-7-rpms
# install devtoolset-7
sudo yum install devtoolset-7
# enable devtoolset-7 (probably doesn't matter that I do this step from the root of the project; same folder as node_modules)
scl enable devtoolset-7 bash
rm -Rf node_modules package-lock.json
npm install
npm rebuild argon2 --build-from-source That’s it ... you can now run directus: npm run start |
I tried these commands to install gcc. It's more faster and easier to do~ |
@kroawen's answer works for me in a container. But only when executing commands interactively. Still trying to fix the Dockerfile. Any ideas why? A separate issue is the yum package manager seems to be broken after the final |
Hi,I'm the webmaster of the 02405.com site and I apologize for the change in the file url due to the rewrite, I have uploaded a copy of that file.I hope it can help you. |
Just updated from rc71 to rc73
When running npx directus bootstrap :
/lib64/libc.so.6: version 'GLIBC_2.25' not found (required by [...] /node_modules/argon2/lib/binding/napi-v3/argon2.node)
Centos 7.9
New requirement with new version of argon ?
The text was updated successfully, but these errors were encountered: