Skip to content

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
    • Help
    • Submit feedback
    • Contribute to GitLab
  • Sign in
P
purescript-gargantext
  • Project
    • Project
    • Details
    • Activity
    • Releases
    • Cycle Analytics
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Charts
  • Issues 139
    • Issues 139
    • List
    • Board
    • Labels
    • Milestones
  • Merge Requests 3
    • Merge Requests 3
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
    • Charts
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • gargantext
  • purescript-gargantext
  • Issues
  • #671

Closed
Open
Opened May 27, 2024 by Alfredo Di Napoli@AlfredoDiNapoli
  • Report abuse
  • New issue
Report abuse New issue

`./install` doesn't work on Darwin

After #605 (closed) got fixed, I'm currently unable to run ./install on my Mac. Running ./install on the latest dev yields the following error:

./install 
Installing JS Dependencies
npm WARN deprecated stable@0.1.8: Modern JS already guarantees Array#sort() is a stable sort, so this library is deprecated. See the compatibility table on MDN: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort#browser_compatibility
npm notice 
npm notice New major version of npm available! 9.8.1 -> 10.8.0
npm notice Changelog: https://github.com/npm/cli/releases/tag/v10.8.0
npm notice Run npm install -g npm@10.8.0 to update!
npm notice 
npm ERR! code 1
npm ERR! path /Users/adinapoli/work/clients/CNRS/haskell-gargantext/adinapoli-wip2/purescript-gargantext/node_modules/lmdb
npm ERR! command failed
npm ERR! command sh -c node-gyp-build-optional-packages
npm ERR! make: Entering directory '/Users/adinapoli/work/clients/CNRS/haskell-gargantext/adinapoli-wip2/purescript-gargantext/node_modules/lmdb/build'
npm ERR!   CXX(target) Release/obj.target/lmdb/src/lmdb-js.o
npm ERR! make: Leaving directory '/Users/adinapoli/work/clients/CNRS/haskell-gargantext/adinapoli-wip2/purescript-gargantext/node_modules/lmdb/build'
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp info using node-gyp@9.4.0
npm ERR! gyp info using node@18.18.2 | darwin | x64
npm ERR! gyp info find Python using Python version 3.7.16 found at "/Users/adinapoli/.pyenv/versions/3.7.16/bin/python3"
npm ERR! gyp http GET https://nodejs.org/download/release/v18.18.2/node-v18.18.2-headers.tar.gz
npm ERR! gyp http 200 https://nodejs.org/download/release/v18.18.2/node-v18.18.2-headers.tar.gz
npm ERR! gyp http GET https://nodejs.org/download/release/v18.18.2/SHASUMS256.txt
npm ERR! gyp http 200 https://nodejs.org/download/release/v18.18.2/SHASUMS256.txt
npm ERR! gyp info spawn /Users/adinapoli/.pyenv/versions/3.7.16/bin/python3
npm ERR! gyp info spawn args [
npm ERR! gyp info spawn args   '/nix/store/hcy0v370jhf3flzq9vqvr3yvp9ivxmk3-nodejs-18.18.2/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py',
npm ERR! gyp info spawn args   'binding.gyp',
npm ERR! gyp info spawn args   '-f',
npm ERR! gyp info spawn args   'make',
npm ERR! gyp info spawn args   '-I',
npm ERR! gyp info spawn args   '/Users/adinapoli/work/clients/CNRS/haskell-gargantext/adinapoli-wip2/purescript-gargantext/node_modules/lmdb/build/config.gypi',
npm ERR! gyp info spawn args   '-I',
npm ERR! gyp info spawn args   '/nix/store/hcy0v370jhf3flzq9vqvr3yvp9ivxmk3-nodejs-18.18.2/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',
npm ERR! gyp info spawn args   '-I',
npm ERR! gyp info spawn args   '/Users/adinapoli/Library/Caches/node-gyp/18.18.2/include/node/common.gypi',
npm ERR! gyp info spawn args   '-Dlibrary=shared_library',
npm ERR! gyp info spawn args   '-Dvisibility=default',
npm ERR! gyp info spawn args   '-Dnode_root_dir=/Users/adinapoli/Library/Caches/node-gyp/18.18.2',
npm ERR! gyp info spawn args   '-Dnode_gyp_dir=/nix/store/hcy0v370jhf3flzq9vqvr3yvp9ivxmk3-nodejs-18.18.2/lib/node_modules/npm/node_modules/node-gyp',
npm ERR! gyp info spawn args   '-Dnode_lib_file=/Users/adinapoli/Library/Caches/node-gyp/18.18.2/<(target_arch)/node.lib',
npm ERR! gyp info spawn args   '-Dmodule_root_dir=/Users/adinapoli/work/clients/CNRS/haskell-gargantext/adinapoli-wip2/purescript-gargantext/node_modules/lmdb',
npm ERR! gyp info spawn args   '-Dnode_engine=v8',
npm ERR! gyp info spawn args   '--depth=.',
npm ERR! gyp info spawn args   '--no-parallel',
npm ERR! gyp info spawn args   '--generator-output',
npm ERR! gyp info spawn args   'build',
npm ERR! gyp info spawn args   '-Goutput_dir=.'
npm ERR! gyp info spawn args ]
npm ERR! gyp info spawn make
npm ERR! gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
npm ERR! In file included from ../src/lmdb-js.cpp:1:
npm ERR! In file included from ../src/lmdb-js.h:27:
npm ERR! In file included from /nix/store/xg2m3mbydbkvbg4zb86zvgg4c35hj1mi-libcxx-16.0.6-dev/include/c++/v1/vector:290:
npm ERR! In file included from /nix/store/xg2m3mbydbkvbg4zb86zvgg4c35hj1mi-libcxx-16.0.6-dev/include/c++/v1/__bit_reference:20:
npm ERR! In file included from /nix/store/xg2m3mbydbkvbg4zb86zvgg4c35hj1mi-libcxx-16.0.6-dev/include/c++/v1/__memory/construct_at.h:23:
npm ERR! /nix/store/xg2m3mbydbkvbg4zb86zvgg4c35hj1mi-libcxx-16.0.6-dev/include/c++/v1/new:355:14: error: no member named 'aligned_alloc' in the global namespace
npm ERR!     return ::aligned_alloc(__alignment, __size > __rounded_size ? __size : __rounded_size);
npm ERR!            ~~^
npm ERR! 1 error generated.
npm ERR! make: *** [lmdb.target.mk:152: Release/obj.target/lmdb/src/lmdb-js.o] Error 1
npm ERR! gyp ERR! build error 
npm ERR! gyp ERR! stack Error: `make` failed with exit code: 2
npm ERR! gyp ERR! stack     at ChildProcess.onExit (/nix/store/hcy0v370jhf3flzq9vqvr3yvp9ivxmk3-nodejs-18.18.2/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:203:23)
npm ERR! gyp ERR! stack     at ChildProcess.emit (node:events:517:28)
npm ERR! gyp ERR! stack     at ChildProcess._handle.onexit (node:internal/child_process:292:12)
npm ERR! gyp ERR! System Darwin 22.3.0
npm ERR! gyp ERR! command "/nix/store/hcy0v370jhf3flzq9vqvr3yvp9ivxmk3-nodejs-18.18.2/bin/node" "/nix/store/hcy0v370jhf3flzq9vqvr3yvp9ivxmk3-nodejs-18.18.2/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
npm ERR! gyp ERR! cwd /Users/adinapoli/work/clients/CNRS/haskell-gargantext/adinapoli-wip2/purescript-gargantext/node_modules/lmdb
npm ERR! gyp ERR! node -v v18.18.2
npm ERR! gyp ERR! node-gyp -v v9.4.0
npm ERR! gyp ERR! not ok

npm ERR! A complete log of this run can be found in: /Users/adinapoli/.npm/_logs/2024-05-27T13_19_43_750Z-debug-0.log

@cgenie Does that ring a bell?

Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
2
Labels
To deploy regression
Assign labels
  • View project labels
Reference: gargantext/purescript-gargantext#671