I installed the dev package: compilation is going on now. Thanks!
I now get another error:
That version of Node.js that you are trying to build is outdated and it is targeted for Linux. So it will not compile here.
The easiest way to build Node.js right now is to use haikuporter.
pkgman install haikuporter
git clone https://github.com/haikuports/haikuports.git --depth=10
- Edit the configuration file in
~/config/settings/haikuports.conf
3.1 Change theTREE_PATH
to the location of thehaikuports
folder.
3.2 ChangeTARGET_ARCHITECTURE
tox86_64
- Run
haikuporter nodejs -G --no-source-packages --get-dependencies -j4
Thanks. I tried following your instructions but I donāt have an haikuports.conf file in ~/config/settings/.
There is one in /boot/system/settings and /boot/system/packages/adminstrationā¦/haikuporter-1.2.2-2/settings/ but I guess I should not touch those.
Right, You might need to copy the sample config in the haikuporter repository [0] and place it in ~/config/settings/haikuports.conf
and continue from 3.1.
[0] See: https://github.com/haikuports/haikuporter/blob/master/haikuports-sample.conf
Thanks: this did the trick. How do I compile it then? Iām not sure what running step 4 did.
Step 4 runs the haikuporter tool which first looks for the selected port (in this case nodejs) and it automatically resolves the dependencies it needs before actually building it. The extra flags are there to skip some stages for it to build faster.