Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FreeBSD support #132

Open
jpawlowski opened this issue Apr 8, 2018 · 4 comments
Open

FreeBSD support #132

jpawlowski opened this issue Apr 8, 2018 · 4 comments

Comments

@jpawlowski
Copy link

jpawlowski commented Apr 8, 2018

it seems to me the makefile does not consider FreeBSD as an operating system:

> [email protected] preinstall /usr/local/lib/node_modules/sodium
> node install.js --preinstall


make: stopped in /usr/local/lib/node_modules/sodium
make: "/usr/local/lib/node_modules/sodium/Makefile" line 14: Missing dependency operator
make: "/usr/local/lib/node_modules/sodium/Makefile" line 16: Unassociated shell command "THIS_OS = Windows"
make: "/usr/local/lib/node_modules/sodium/Makefile" line 17: Missing dependency operator
make: "/usr/local/lib/node_modules/sodium/Makefile" line 19: Unassociated shell command "PLATFORM = x86_64"
make: "/usr/local/lib/node_modules/sodium/Makefile" line 20: Need an operator
make: "/usr/local/lib/node_modules/sodium/Makefile" line 21: Missing dependency operator
make: "/usr/local/lib/node_modules/sodium/Makefile" line 23: Unassociated shell command "PLATFORM = i386"
make: "/usr/local/lib/node_modules/sodium/Makefile" line 24: Need an operator
make: "/usr/local/lib/node_modules/sodium/Makefile" line 25: Need an operator
make: "/usr/local/lib/node_modules/sodium/Makefile" line 27: Missing dependency operator
make: "/usr/local/lib/node_modules/sodium/Makefile" line 30: Unassociated shell command "CCFLAGS += -fPIC"
make: "/usr/local/lib/node_modules/sodium/Makefile" line 32: Need an operator
make: "/usr/local/lib/node_modules/sodium/Makefile" line 33: Missing dependency operator
make: "/usr/local/lib/node_modules/sodium/Makefile" line 34: warning: duplicate script for target "ifeq" ignored
make: "/usr/local/lib/node_modules/sodium/Makefile" line 28: warning: using previous script for "ifeq" defined here
make: "/usr/local/lib/node_modules/sodium/Makefile" line 35: warning: duplicate script for target "ifeq" ignored
make: "/usr/local/lib/node_modules/sodium/Makefile" line 28: warning: using previous script for "ifeq" defined here
make: "/usr/local/lib/node_modules/sodium/Makefile" line 37: Unassociated shell command "LDFLAGS="-arch x86_64 -mmacosx-version-min=${OSX_VERSION_MIN} -flto""
make: "/usr/local/lib/node_modules/sodium/Makefile" line 38: Need an operator
make: "/usr/local/lib/node_modules/sodium/Makefile" line 40: Missing dependency operator
make: "/usr/local/lib/node_modules/sodium/Makefile" line 41: warning: duplicate script for target "ifeq" ignored
make: "/usr/local/lib/node_modules/sodium/Makefile" line 28: warning: using previous script for "ifeq" defined here
make: "/usr/local/lib/node_modules/sodium/Makefile" line 43: Need an operator
make: "/usr/local/lib/node_modules/sodium/Makefile" line 44: Missing dependency operator
make: "/usr/local/lib/node_modules/sodium/Makefile" line 46: Unassociated shell command "PLATFORM = i386"
make: "/usr/local/lib/node_modules/sodium/Makefile" line 47: Need an operator
make: "/usr/local/lib/node_modules/sodium/Makefile" line 48: Missing dependency operator
make: "/usr/local/lib/node_modules/sodium/Makefile" line 51: Need an operator
make: "/usr/local/lib/node_modules/sodium/Makefile" line 52: Need an operator
make: "/usr/local/lib/node_modules/sodium/Makefile" line 60: Missing dependency operator
make: "/usr/local/lib/node_modules/sodium/Makefile" line 61: warning: duplicate script for target "ifeq" ignored
make: "/usr/local/lib/node_modules/sodium/Makefile" line 28: warning: using previous script for "ifeq" defined here
make: "/usr/local/lib/node_modules/sodium/Makefile" line 61: warning: duplicate script for target "(,)" ignored
make: "/usr/local/lib/node_modules/sodium/Makefile" line 49: warning: using previous script for "(,)" defined here
make: "/usr/local/lib/node_modules/sodium/Makefile" line 62: warning: duplicate script for target "ifeq" ignored
make: "/usr/local/lib/node_modules/sodium/Makefile" line 28: warning: using previous script for "ifeq" defined here
make: "/usr/local/lib/node_modules/sodium/Makefile" line 62: warning: duplicate script for target "(,)" ignored
make: "/usr/local/lib/node_modules/sodium/Makefile" line 49: warning: using previous script for "(,)" defined here
make: "/usr/local/lib/node_modules/sodium/Makefile" line 64: warning: duplicate script for target "ifeq" ignored
make: "/usr/local/lib/node_modules/sodium/Makefile" line 28: warning: using previous script for "ifeq" defined here
make: "/usr/local/lib/node_modules/sodium/Makefile" line 64: warning: duplicate script for target "(,)" ignored
make: "/usr/local/lib/node_modules/sodium/Makefile" line 49: warning: using previous script for "(,)" defined here
make: "/usr/local/lib/node_modules/sodium/Makefile" line 65: warning: duplicate script for target "ifeq" ignored
make: "/usr/local/lib/node_modules/sodium/Makefile" line 28: warning: using previous script for "ifeq" defined here
make: "/usr/local/lib/node_modules/sodium/Makefile" line 65: warning: duplicate script for target "(,)" ignored
make: "/usr/local/lib/node_modules/sodium/Makefile" line 49: warning: using previous script for "(,)" defined here
make: "/usr/local/lib/node_modules/sodium/Makefile" line 66: warning: duplicate script for target "ifeq" ignored
make: "/usr/local/lib/node_modules/sodium/Makefile" line 28: warning: using previous script for "ifeq" defined here
make: "/usr/local/lib/node_modules/sodium/Makefile" line 66: warning: duplicate script for target "(,)" ignored
make: "/usr/local/lib/node_modules/sodium/Makefile" line 49: warning: using previous script for "(,)" defined here
make: "/usr/local/lib/node_modules/sodium/Makefile" line 67: warning: duplicate script for target "ifeq" ignored
make: "/usr/local/lib/node_modules/sodium/Makefile" line 28: warning: using previous script for "ifeq" defined here
make: "/usr/local/lib/node_modules/sodium/Makefile" line 67: warning: duplicate script for target "(,)" ignored
make: "/usr/local/lib/node_modules/sodium/Makefile" line 49: warning: using previous script for "(,)" defined here
make: "/usr/local/lib/node_modules/sodium/Makefile" line 68: Need an operator
make: "/usr/local/lib/node_modules/sodium/Makefile" line 72: Need an operator

make: Fatal errors encountered -- cannot continue/usr/local/lib/node_modules/sodium/install.js:287
            throw new Error(cmdLine + ' exited with code ' + code);
            ^

Error: make libsodium exited with code 1
    at ChildProcess.<anonymous> (/usr/local/lib/node_modules/sodium/install.js:287:19)
    at ChildProcess.emit (events.js:180:13)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:209:12)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] preinstall: `node install.js --preinstall`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] preinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2018-04-08T13_56_27_209Z-debug.log





root@hostname:~ # uname -a
FreeBSD hostname 11.1-RELEASE-p8 FreeBSD 11.1-RELEASE-p8  76d691b36(stable/18.1)  amd64

Would you mind adding FreeBSD to the list of OS?

@RealGoodProgrammer
Copy link

Same problem

@paixaop
Copy link
Owner

paixaop commented Nov 16, 2018

What version of make are you using?

@A2-Dev
Copy link

A2-Dev commented Nov 19, 2018

same issue

pkg info | grep make

automake-1.16.1 GNU Standards-compliant Makefile generator
gmake-4.2.1_2 GNU version of 'make' utility

pkg updated and upgraded and running latest node/npm updated and upgraded as well -g

@redxtech
Copy link

redxtech commented Feb 4, 2022

Can confirm this is still an issue. Would really appreciate FreeBSD support.

Output of uname -a:
FreeBSD hostname 12.2-RELEASE-p11 FreeBSD 12.2-RELEASE-p11 75566f060d4(HEAD) TRUENAS amd64

Output of pkg info | grep make:

gmake-4.3_2 GNU version of 'make' utility

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants