i had this error while i used truffle for the contract migration , after put on command “truffle migrate” on console.
Error: /snap/core20/current/lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.33’ not found (required by /usr/local/lib/node_modules/truffle/node_modules/ganache/node_modules/leveldown/build/Release/leveldown.node)
at Object.Module._extensions…node (node:internal/modules/cjs/loader:1183:18)
at Module.load (node:internal/modules/cjs/loader:981:32)
at Function.Module._load (node:internal/modules/cjs/loader:822:12)
at Module.require (node:internal/modules/cjs/loader:1005:19)
at require (node:internal/modules/cjs/helpers:102:18)
at load (/usr/local/lib/node_modules/truffle/node_modules/ganache/node_modules/node-gyp-build/index.js:21:10)
at Object. (/usr/local/lib/node_modules/truffle/node_modules/ganache/node_modules/leveldown/binding.js:1:43)
at Module._compile (node:internal/modules/cjs/loader:1101:14)
at Object.Module._extensions…js (node:internal/modules/cjs/loader:1153:10)
at Module.load (node:internal/modules/cjs/loader:981:32)
at Function.Module._load (node:internal/modules/cjs/loader:822:12)
at Module.require (node:internal/modules/cjs/loader:1005:19)
at require (node:internal/modules/cjs/helpers:102:18)
at Object. (/usr/local/lib/node_modules/truffle/node_modules/ganache/node_modules/leveldown/leveldown.js:5:17)
at Module._compile (node:internal/modules/cjs/loader:1101:14)
at Object.Module._extensions…js (node:internal/modules/cjs/loader:1153:10)
Truffle v5.4.32 (core: 5.4.32)
Node v16.13.2
This looks like a problem with packaging. Most likely something was built locally on a newer system (with newer glibc) and later was put in the snap. If you built that using snapcraft then please post the snapcraft.yaml.
looking at truffle with snap info it is weird that this snap seemingly tries to use core20 above in the error … the last build of it seems to be from 2017 … perhaps @elopio can elaborate (if he still reads this forum )
sergiusens@lothlorien:~$ snap find truffle
Name Version Publisher Notes Summary
truffle v4.0.1 elopio - A development framework for Ethereum
sergiusens@lothlorien:~$ sudo snap install truffle
[sudo] password for sergiusens:
error: snap "truffle" is not available on stable but is available to install on
the following channels:
beta snap install --beta truffle
edge snap install --edge truffle
Please be mindful pre-release channels may include features not
completely tested or implemented. Get more information with 'snap info
truffle'.
sergiusens@lothlorien:~$ sudo snap install truffle --beta
truffle (beta) v4.0.1 from Leo Arias (elopio) installed
sergiusens@lothlorien:~$ truffle
Truffle v4.0.1 - a development framework for Ethereum
Usage: truffle <command> [options]
Commands:
init Initialize new Ethereum project with example contracts and tests
compile Compile contract source files
migrate Run migrations to deploy contracts
deploy (alias for migrate)
build Execute build pipeline (if configuration present)
test Run Mocha and Solidity tests
debug Interactively debug any transaction on the blockchain (experimental)
opcode Print the compiled opcodes for a given contract
console Run a console with contract abstractions and commands available
develop Open a console with a local TestRPC
create Helper to create new contracts, migrations and tests
install Install a package from the Ethereum Package Registry
publish Publish a package to the Ethereum Package Registry
networks Show addresses for deployed contracts on each network
watch Watch filesystem for changes and rebuild the project automatically
serve Serve the build directory on localhost and watch for changes
exec Execute a JS module within this Truffle environment
unbox Unbox Truffle project
version Show version number and exit
See more at http://truffleframework.com/docs
and migrate:
sergiusens@lothlorien:~/t$ truffle migrate
Could not find suitable configuration file.