Skip to content

Unable to build go binary on Debian Bookworm #22

@Eliesemoule

Description

@Eliesemoule

Hello,

I tried to build console go binary on Debian Bookworm. Below the command to build binary

apt install awscli git golang-1.23
ln -s /usr/lib/go-1.23/bin/go /usr/local/bin/
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.3/install.sh | bash
nvm install --lts
npm install -g npm@11.4.2 
npm install --global yarn
git clone https://github.com/OpenMaxIO/openmaxio-object-browser
cd openmaxio-object-browser/web-app && git checkout v1.7.6
corepack enable
yarn install

Below the content of the log file

# This file contains the result of Yarn building a package (canvas@npm:2.11.2)
# Script name: install

node-pre-gyp info it worked if it ends with ok
node-pre-gyp info using node-pre-gyp@1.0.11
node-pre-gyp info using node@22.17.0 | linux | x64
node-pre-gyp http GET https://github.com/Automattic/node-canvas/releases/download/v2.11.2/canvas-v2.11.2-node-v127-linux-glibc-x64.tar.gz
node-pre-gyp ERR! install response status 404 Not Found on https://github.com/Automattic/node-canvas/releases/download/v2.11.2/canvas-v2.11.2-node-v127-linux-glibc-x64.tar.gz
node-pre-gyp WARN Pre-built binaries not installable for canvas@2.11.2 and node@22.17.0 (node-v127 ABI, glibc) (falling back to source compile with node-gyp)
node-pre-gyp WARN Hit error response status 404 Not Found on https://github.com/Automattic/node-canvas/releases/download/v2.11.2/canvas-v2.11.2-node-v127-linux-glibc-x64.tar.gz
gyp info it worked if it ends with ok
gyp info using node-gyp@10.2.0
gyp info using node@22.17.0 | linux | x64
gyp info ok
gyp info it worked if it ends with ok
gyp info using node-gyp@10.2.0
gyp info using node@22.17.0 | linux | x64
gyp info find Python using Python version 3.11.2 found at "/usr/bin/python3"

gyp http GET https://nodejs.org/download/release/v22.17.0/node-v22.17.0-headers.tar.gz
gyp http 200 https://nodejs.org/download/release/v22.17.0/node-v22.17.0-headers.tar.gz
gyp http GET https://nodejs.org/download/release/v22.17.0/SHASUMS256.txt
gyp http 200 https://nodejs.org/download/release/v22.17.0/SHASUMS256.txt
gyp info spawn /usr/bin/python3
gyp info spawn args [
gyp info spawn args '/root/openmaxio-object-browser/web-app/node_modules/node-gyp/gyp/gyp_main.py',
gyp info spawn args 'binding.gyp',
gyp info spawn args '-f',
gyp info spawn args 'make',
gyp info spawn args '-I',
gyp info spawn args '/root/openmaxio-object-browser/web-app/node_modules/canvas/build/config.gypi',
gyp info spawn args '-I',
gyp info spawn args '/root/openmaxio-object-browser/web-app/node_modules/node-gyp/addon.gypi',
gyp info spawn args '-I',
gyp info spawn args '/root/.cache/node-gyp/22.17.0/include/node/common.gypi',
gyp info spawn args '-Dlibrary=shared_library',
gyp info spawn args '-Dvisibility=default',
gyp info spawn args '-Dnode_root_dir=/root/.cache/node-gyp/22.17.0',
gyp info spawn args '-Dnode_gyp_dir=/root/openmaxio-object-browser/web-app/node_modules/node-gyp',
gyp info spawn args '-Dnode_lib_file=/root/.cache/node-gyp/22.17.0/<(target_arch)/node.lib',
gyp info spawn args '-Dmodule_root_dir=/root/openmaxio-object-browser/web-app/node_modules/canvas',
gyp info spawn args '-Dnode_engine=v8',
gyp info spawn args '--depth=.',
gyp info spawn args '--no-parallel',
gyp info spawn args '--generator-output',
gyp info spawn args 'build',
gyp info spawn args '-Goutput_dir=.'
gyp info spawn args ]
Package pixman-1 was not found in the pkg-config search path.
Perhaps you should add the directory containing `pixman-1.pc'
to the PKG_CONFIG_PATH environment variable
Package 'pixman-1', required by 'virtual:world', not found
gyp: Call to 'pkg-config pixman-1 --libs' returned exit status 1 while in binding.gyp. while trying to load binding.gyp
gyp ERR! configure error
gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR! stack at ChildProcess.<anonymous> (/root/openmaxio-object-browser/web-app/node_modules/node-gyp/lib/configure.js:317:18)
gyp ERR! stack at ChildProcess.emit (node:events:518:28)
gyp ERR! stack at ChildProcess._handle.onexit (node:internal/child_process:293:12)
gyp ERR! System Linux 6.1.0-32-cloud-amd64
gyp ERR! command "/root/.nvm/versions/node/v22.17.0/bin/node" "/root/openmaxio-object-browser/web-app/node_modules/node-gyp/bin/node-gyp.js" "configure" "--fallback-to-build" "--update-binary" "--module=/root/openmaxio-object-browser/web-app/node_modules/canvas/build/Release/canvas.node" "--module_name=canvas" "--module_path=/root/openmaxio-object-browser/web-app/node_modules/canvas/build/Release" "--napi_version=10" "--node_abi_napi=napi" "--napi_build_version=0" "--node_napi_label=node-v127"
gyp ERR! cwd /root/openmaxio-object-browser/web-app/node_modules/canvas
gyp ERR! node -v v22.17.0
gyp ERR! node-gyp -v v10.2.0
gyp ERR! not ok
node-pre-gyp ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute '/root/.nvm/versions/node/v22.17.0/bin/node /root/openmaxio-object-browser/web-app/node_modules/node-gyp/bin/node-gyp.js configure --fallback-to-build --update-binary --module=/root/openmaxio-object-browser/web-app/node_modules/canvas/build/Release/canvas.node --module_name=canvas --module_path=/root/openmaxio-object-browser/web-app/node_modules/canvas/build/Release --napi_version=10 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v127' (1)
node-pre-gyp ERR! stack     at ChildProcess.<anonymous> (/root/openmaxio-object-browser/web-app/node_modules/@mapbox/node-pre-gyp/lib/util/compile.js:89:23)
node-pre-gyp ERR! stack     at ChildProcess.emit (node:events:518:28)
node-pre-gyp ERR! stack     at maybeClose (node:internal/child_process:1101:16)
node-pre-gyp ERR! stack     at ChildProcess._handle.onexit (node:internal/child_process:304:5)
node-pre-gyp ERR! System Linux 6.1.0-32-cloud-amd64
node-pre-gyp ERR! command "/root/.nvm/versions/node/v22.17.0/bin/node" "/root/openmaxio-object-browser/web-app/node_modules/@mapbox/node-pre-gyp/bin/node-pre-gyp" "install" "--fallback-to-build" "--update-binary"
node-pre-gyp ERR! cwd /root/openmaxio-object-browser/web-app/node_modules/canvas
node-pre-gyp ERR! node -v v22.17.0
node-pre-gyp ERR! node-pre-gyp -v v1.0.11
node-pre-gyp ERR! not ok
Failed to execute '/root/.nvm/versions/node/v22.17.0/bin/node /root/openmaxio-object-browser/web-app/node_modules/node-gyp/bin/node-gyp.js configure --fallback-to-build --update-binary --module=/root/openmaxio-object-browser/web-app/node_modules/canvas/build/Release/canvas.node --module_name=canvas --module_path=/root/openmaxio-object-browser/web-app/node_modules/canvas/build/Release --napi_version=10 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v127' (1)

I'm not a developer. I'm not sure if I install good package or version to compile. Someone can help me or provide me console compiled binary?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions