nicholasoxford / SupaFly

The easiest way to deploy Supabase to Fly.io
107 stars 5 forks source link

pnpm install error on Fedora #3

Open vikyw89 opened 11 months ago

vikyw89 commented 11 months ago

Steps to reproduce:

  1. clone repo
  2. installed wireguard
    sudo dnf install wireguard-tools
  3. pnpm install
    [vikyw@fedora SupaFly]$ pnpm install
    Scope: all 4 workspace projects
     WARN  1 deprecated subdependencies found: @npmcli/move-file@1.1.2
    Packages: +833
    +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    Progress: resolved 839, reused 833, downloaded 0, added 833, done
    node_modules/.pnpm/libpg-query@13.3.1/node_modules/libpg-query: Running install script, failed in 1m 11.3s
    .../node_modules/libpg-query install$ node-pre-gyp install --fallback-to-build
    │ node-pre-gyp info it worked if it ends with ok
    │ node-pre-gyp info using node-pre-gyp@1.0.10
    │ node-pre-gyp info using node@20.6.1 | linux | x64
    │ node-pre-gyp info check checked for "/home/vikyw/Desktop/SupaFly/node_modules/.pnpm/libpg-query@13.3.1/node_modules/libpg-query/build/Release/queryparser.node" (not found)
    │ node-pre-gyp http GET https://supabase-public-artifacts-bucket.s3.amazonaws.com/libpg-query-node/queryparser-v13.3.1-node-v115-linux-x64.tar.gz
    │ node-pre-gyp ERR! install response status 404 Not Found on https://supabase-public-artifacts-bucket.s3.amazonaws.com/libpg-query-node/queryparser-v13.3.1-node-v115-linux-x64.tar.gz 
    │ node-pre-gyp WARN Pre-built binaries not installable for libpg-query@13.3.1 and node@20.6.1 (node-v115 ABI, glibc) (falling back to source compile with node-gyp) 
    │ node-pre-gyp WARN Hit error response status 404 Not Found on https://supabase-public-artifacts-bucket.s3.amazonaws.com/libpg-query-node/queryparser-v13.3.1-node-v115-linux-x64.tar.gz 
    │ gyp info it worked if it ends with ok
    │ gyp info using node-gyp@8.4.1
    │ gyp info using node@20.6.1 | linux | x64
    │ gyp info ok 
    │ gyp info it worked if it ends with ok
    │ gyp info using node-gyp@8.4.1
    │ gyp info using node@20.6.1 | linux | x64
    │ gyp info find Python using Python version 3.11.6 found at "/usr/bin/python3"
    │ gyp info spawn /usr/bin/python3
    │ gyp info spawn args [
    │ gyp info spawn args   '/home/vikyw/Desktop/SupaFly/node_modules/.pnpm/node-gyp@8.4.1/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   '/home/vikyw/Desktop/SupaFly/node_modules/.pnpm/libpg-query@13.3.1/node_modules/libpg-query/build/config.gypi',
    │ gyp info spawn args   '-I',
    │ gyp info spawn args   '/home/vikyw/Desktop/SupaFly/node_modules/.pnpm/node-gyp@8.4.1/node_modules/node-gyp/addon.gypi',
    │ gyp info spawn args   '-I',
    │ gyp info spawn args   '/home/vikyw/.cache/node-gyp/20.6.1/include/node/common.gypi',
    │ gyp info spawn args   '-Dlibrary=shared_library',
    │ gyp info spawn args   '-Dvisibility=default',
    │ gyp info spawn args   '-Dnode_root_dir=/home/vikyw/.cache/node-gyp/20.6.1',
    │ gyp info spawn args   '-Dnode_gyp_dir=/home/vikyw/Desktop/SupaFly/node_modules/.pnpm/node-gyp@8.4.1/node_modules/node-gyp',
    │ gyp info spawn args   '-Dnode_lib_file=/home/vikyw/.cache/node-gyp/20.6.1/<(target_arch)/node.lib',
    │ gyp info spawn args   '-Dmodule_root_dir=/home/vikyw/Desktop/SupaFly/node_modules/.pnpm/libpg-query@13.3.1/node_modules/libpg-query',
    │ 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 ]
    │ gyp info ok 
    │ gyp info it worked if it ends with ok
    │ gyp info using node-gyp@8.4.1
    │ gyp info using node@20.6.1 | linux | x64
    │ gyp info spawn make
    │ gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
    │ make: Entering directory '/home/vikyw/Desktop/SupaFly/node_modules/.pnpm/libpg-query@13.3.1/node_modules/libpg-query/build'
    │   CC(target) Release/obj.target/nothing/../../../node-addon-api@1.7.2/node_modules/node-addon-api/src/nothing.o
    │   AR(target) Release/obj.target/../../../node-addon-api@1.7.2/node_modules/node-addon-api/src/nothing.a
    │   COPY Release/nothing.a
    │   ACTION binding_gyp_queryparser_target_prebuild_dependencies libpg_query/include/pg_query.h
    │ Cloning into 'libpg_query'...
    │ Note: switching to '95c1f0b43b71123b35956c4a19806c2f70d31e0e'.
    │ You are in 'detached HEAD' state. You can look around, make experimental
    │ changes and commit them, and you can discard any commits you make in this
    │ state without impacting any branches by switching back to a branch.
    │ If you want to create a new branch to retain commits you create, you may
    │ do so (now or later) by using -c with the switch command. Example:
    │   git switch -c <new-branch-name>
    │ Or undo this operation with:
    │   git switch -
    │ Turn off this advice by setting config variable advice.detachedHead to false
    │ HEAD is now at 95c1f0b GH actions: add CIFuzz integration
    │ make[1]: Entering directory '/tmp/tmp.nOvroid8XS/libpg_query'
    │ compiling src/pg_query.c
    │ compiling src/pg_query_deparse.c
    │ compiling src/pg_query_fingerprint.c
    │ compiling src/pg_query_json_plpgsql.c
    │ compiling src/pg_query_normalize.c
    │ compiling src/pg_query_outfuncs_json.c
    │ compiling src/pg_query_outfuncs_protobuf.c
    │ compiling src/pg_query_parse.c
    │ compiling src/pg_query_parse_plpgsql.c
    │ compiling src/pg_query_readfuncs_protobuf.c
    │ Warning: protoc-gen-c not found, skipping protocol buffer regeneration
    │ compiling src/pg_query_scan.c
    │ compiling src/pg_query_split.c
    │ compiling src/postgres/src_backend_catalog_namespace.c
    │ compiling src/postgres/src_backend_catalog_pg_proc.c
    │ compiling src/postgres/src_backend_commands_define.c
    │ compiling src/postgres/src_backend_libpq_pqcomm.c
    │ compiling src/postgres/src_backend_nodes_bitmapset.c
    │ compiling src/postgres/src_backend_nodes_copyfuncs.c
    │ compiling src/postgres/src_backend_nodes_equalfuncs.c
    │ compiling src/postgres/src_backend_nodes_extensible.c
    │ compiling src/postgres/src_backend_nodes_list.c
    │ compiling src/postgres/src_backend_nodes_makefuncs.c
    │ compiling src/postgres/src_backend_nodes_nodeFuncs.c
    │ compiling src/postgres/src_backend_nodes_value.c
    │ compiling src/postgres/src_backend_parser_gram.c
    │ compiling src/postgres/src_backend_parser_parse_expr.c
    │ compiling src/postgres/src_backend_parser_parser.c
    │ compiling src/postgres/src_backend_parser_scan.c
    │ compiling src/postgres/src_backend_parser_scansup.c
    │ compiling src/postgres/src_backend_postmaster_postmaster.c
    │ compiling src/postgres/src_backend_storage_ipc_ipc.c
    │ compiling src/postgres/src_backend_storage_lmgr_s_lock.c
    │ compiling src/postgres/src_backend_tcop_postgres.c
    │ compiling src/postgres/src_backend_utils_adt_datum.c
    │ compiling src/postgres/src_backend_utils_adt_expandeddatum.c
    │ compiling src/postgres/src_backend_utils_adt_format_type.c
    │ compiling src/postgres/src_backend_utils_adt_ruleutils.c
    │ compiling src/postgres/src_backend_utils_error_assert.c
    │ compiling src/postgres/src_backend_utils_error_elog.c
    │ compiling src/postgres/src_backend_utils_fmgr_fmgr.c
    │ compiling src/postgres/src_backend_utils_hash_dynahash.c
    │ compiling src/postgres/src_backend_utils_init_globals.c
    │ compiling src/postgres/src_backend_utils_mb_mbutils.c
    │ compiling src/postgres/src_backend_utils_misc_guc.c
    │ compiling src/postgres/src_backend_utils_mmgr_aset.c
    │ compiling src/postgres/src_backend_utils_mmgr_mcxt.c
    │ compiling src/postgres/src_common_encnames.c
    │ compiling src/postgres/src_common_hashfn.c
    │ compiling src/postgres/src_common_keywords.c
    │ compiling src/postgres/src_common_kwlookup.c
    │ compiling src/postgres/src_common_psprintf.c
    │ compiling src/postgres/src_common_string.c
    │ compiling src/postgres/src_common_stringinfo.c
    │ compiling src/postgres/src_common_wchar.c
    │ compiling src/postgres/src_pl_plpgsql_src_pl_comp.c
    │ compiling src/postgres/src_pl_plpgsql_src_pl_funcs.c
    │ compiling src/postgres/src_pl_plpgsql_src_pl_gram.c
    │ compiling src/postgres/src_pl_plpgsql_src_pl_handler.c
    │ compiling src/postgres/src_pl_plpgsql_src_pl_scanner.c
    │ compiling src/postgres/src_port_erand48.c
    │ compiling src/postgres/src_port_pg_bitutils.c
    │ compiling src/postgres/src_port_pgsleep.c
    │ compiling src/postgres/src_port_pgstrcasecmp.c
    │ compiling src/postgres/src_port_qsort.c
    │ compiling src/postgres/src_port_random.c
    │ compiling src/postgres/src_port_snprintf.c
    │ compiling src/postgres/src_port_strerror.c
    │ compiling src/postgres/src_port_strnlen.c
    │ compiling vendor/protobuf-c/protobuf-c.c
    │ compiling vendor/xxhash/xxhash.c
    │ Warning: protoc-gen-c not found, skipping protocol buffer regeneration
    │ compiling protobuf/pg_query.pb-c.c
    │ ar: creating libpg_query.a
    │ make[1]: Leaving directory '/tmp/tmp.nOvroid8XS/libpg_query'
    │   CXX(target) Release/obj.target/queryparser/src/addon.o
    │ make: g++: No such file or directory
    │ make: *** [queryparser.target.mk:136: Release/obj.target/queryparser/src/addon.o] Error 127
    │ make: Leaving directory '/home/vikyw/Desktop/SupaFly/node_modules/.pnpm/libpg-query@13.3.1/node_modules/libpg-query/build'
    │ gyp ERR! build error 
    │ gyp ERR! stack Error: `make` failed with exit code: 2
    │ gyp ERR! stack     at ChildProcess.onExit (/home/vikyw/Desktop/SupaFly/node_modules/.pnpm/node-gyp@8.4.1/node_modules/node-gyp/lib/build.js:194:23)
    │ gyp ERR! stack     at ChildProcess.emit (node:events:514:28)
    │ gyp ERR! stack     at ChildProcess._handle.onexit (node:internal/child_process:294:12)
    │ gyp ERR! System Linux 6.5.7-200.fc38.x86_64
    │ gyp ERR! command "/home/vikyw/.nvm/versions/node/v20.6.1/bin/node" "/home/vikyw/Desktop/SupaFly/node_modules/.pnpm/node-gyp@8.4.1/node_modules/node-gyp/bin/node-gyp.js" "build" "--fall…
    │ gyp ERR! cwd /home/vikyw/Desktop/SupaFly/node_modules/.pnpm/libpg-query@13.3.1/node_modules/libpg-query
    │ gyp ERR! node -v v20.6.1
    │ gyp ERR! node-gyp -v v8.4.1
    │ gyp ERR! not ok 
    │ node-pre-gyp ERR! build error 
    │ node-pre-gyp ERR! stack Error: Failed to execute '/home/vikyw/.nvm/versions/node/v20.6.1/bin/node /home/vikyw/Desktop/SupaFly/node_modules/.pnpm/node-gyp@8.4.1/node_modules/node-gyp/bi…
    │ node-pre-gyp ERR! stack     at ChildProcess.<anonymous> (/home/vikyw/Desktop/SupaFly/node_modules/.pnpm/@mapbox+node-pre-gyp@1.0.10/node_modules/@mapbox/node-pre-gyp/lib/util/compile.j…
    │ node-pre-gyp ERR! stack     at ChildProcess.emit (node:events:514:28)
    │ node-pre-gyp ERR! stack     at maybeClose (node:internal/child_process:1105:16)
    │ node-pre-gyp ERR! stack     at ChildProcess._handle.onexit (node:internal/child_process:305:5)
    │ node-pre-gyp ERR! System Linux 6.5.7-200.fc38.x86_64
    │ node-pre-gyp ERR! command "/home/vikyw/.nvm/versions/node/v20.6.1/bin/node" "/home/vikyw/Desktop/SupaFly/node_modules/.pnpm/@mapbox+node-pre-gyp@1.0.10/node_modules/@mapbox/node-pre-gy…
    │ node-pre-gyp ERR! cwd /home/vikyw/Desktop/SupaFly/node_modules/.pnpm/libpg-query@13.3.1/node_modules/libpg-query
    │ node-pre-gyp ERR! node -v v20.6.1
    │ node-pre-gyp ERR! node-pre-gyp -v v1.0.10
    │ node-pre-gyp ERR! not ok 
    │ Failed to execute '/home/vikyw/.nvm/versions/node/v20.6.1/bin/node /home/vikyw/Desktop/SupaFly/node_modules/.pnpm/node-gyp@8.4.1/node_modules/node-gyp/bin/node-gyp.js build --fallback-…
    └─ Failed in 1m 11.3s at /home/vikyw/Desktop/SupaFly/node_modules/.pnpm/libpg-query@13.3.1/node_modules/libpg-query
     ELIFECYCLE  Command failed with exit code 1.
    [vikyw@fedora SupaFly]$