weixin_39834745
2020-12-28 06:44 阅读 6

dependent on sys/sysinfo.h

I was trying to build this module on mac os x and the build failed due to it being dependent on the Linux only header file (sys/sysinfo.h). It would be nice to remove this dependency so this module can be built on other platforms

该提问来源于开源项目:barrysteyn/node-scrypt

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享

8条回答 默认 最新

  • weixin_39940425 weixin_39940425 2020-12-28 06:44

    Hi

    That's my next step: Making this library totally independent of architecture. The problem is that I have no experience of windows or mac. Would it be possible if we could collaborate on getting the MAC version up. With your help, I don't think it would take too long.

    点赞 评论 复制链接分享
  • weixin_39834745 weixin_39834745 2020-12-28 06:44

    I'd be happy to help, I don't have a great deal of experience compiling C programs but can figure most things out.

    On 28/02/2013, at 15:08 , Barry Steyn notifications.com wrote:

    Hi

    That's my next step: Making this library totally independent of architecture. The problem is that I have no experience of windows or mac. Would it be possible if we could collaborate on getting the MAC version up. With your help, I don't think it would take too long.

    — Reply to this email directly or view it on GitHub.

    点赞 评论 复制链接分享
  • weixin_39940425 weixin_39940425 2020-12-28 06:44

    Excellent. The only help I would ask you is to search some things on your system for me. I will hopefully get some time on Sun to do some work on this, so if you could just answer some emails, then all will be good.

    On Thu, Feb 28, 2013 at 1:11 PM, jasadams notifications.com wrote:

    I'd be happy to help, I don't have a great deal of experience compiling C programs but can figure most things out.

    On 28/02/2013, at 15:08 , Barry Steyn notifications.com wrote:

    Hi

    That's my next step: Making this library totally independent of architecture. The problem is that I have no experience of windows or mac. Would it be possible if we could collaborate on getting the MAC version up. With your help, I don't think it would take too long.

    — Reply to this email directly or view it on GitHub.

    — Reply to this email directly or view it on GitHubhttps://github.com/barrysteyn/node-scrypt/issues/2#issuecomment-14247719 .

    点赞 评论 复制链接分享
  • weixin_39940425 weixin_39940425 2020-12-28 06:44

    Hi

    Please can you do me a favour, can you checkout the "mac_architecture" branch, and then run "node-gyp configure rebuild" and tell me what the output is.

    点赞 评论 复制链接分享
  • weixin_39834745 weixin_39834745 2020-12-28 06:44

    FYI, yesterday I downloaded the source for scrypt from tarsnap and was able to compile the c libraries using the instructions on their site.

    Here is the output from the command you asked. I am new to git so I hope I switched to the appropriate branch correctly.

    jason-macbook-pro:node-scrypt jason$ node-gyp configure rebuild gyp info it worked if it ends with ok gyp info using node-gyp.8.4 gyp info using node.8.19 | darwin | x64 gyp info spawn python gyp info spawn args [ '/usr/local/lib/node_modules/node-gyp/gyp/gyp', 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 '/Volumes/Users HD/jason/git/node-scrypt/build/config.gypi', gyp info spawn args '-I', gyp info spawn args '/usr/local/lib/node_modules/node-gyp/addon.gypi', gyp info spawn args '-I', gyp info spawn args '/tmp/.node-gyp/0.8.19/common.gypi', gyp info spawn args '-Dlibrary=shared_library', gyp info spawn args '-Dvisibility=default', gyp info spawn args '-Dnode_root_dir=/tmp/.node-gyp/0.8.19', gyp info spawn args '-Dmodule_root_dir=/Volumes/Users HD/jason/git/node-scrypt', gyp info spawn args '--depth=.', gyp info spawn args '--generator-output', gyp info spawn args 'build', gyp info spawn args '-Goutput_dir=.' ] gyp info spawn python gyp info spawn args [ '/usr/local/lib/node_modules/node-gyp/gyp/gyp', 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 '/Volumes/Users HD/jason/git/node-scrypt/build/config.gypi', gyp info spawn args '-I', gyp info spawn args '/usr/local/lib/node_modules/node-gyp/addon.gypi', gyp info spawn args '-I', gyp info spawn args '/tmp/.node-gyp/0.8.19/common.gypi', gyp info spawn args '-Dlibrary=shared_library', gyp info spawn args '-Dvisibility=default', gyp info spawn args '-Dnode_root_dir=/tmp/.node-gyp/0.8.19', gyp info spawn args '-Dmodule_root_dir=/Volumes/Users HD/jason/git/node-scrypt', gyp info spawn args '--depth=.', gyp info spawn args '--generator-output', gyp info spawn args 'build', gyp info spawn args '-Goutput_dir=.' ] gyp info spawn make gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ] CC(target) Release/obj.target/scrypt_lib/scrypt-1.1.6/lib/scryptenc/scryptenc.o CC(target) Release/obj.target/scrypt_lib/scrypt-1.1.6/lib/util/memlimit.o ../scrypt-1.1.6/lib/util/memlimit.c:41:10: fatal error: 'sys/sysinfo.h' file not found

    include

         ^
    

    1 error generated. make: *** [Release/obj.target/scrypt_lib/scrypt-1.1.6/lib/util/memlimit.o] Error 1 gyp ERR! build error gyp ERR! stack Error: make failed with exit code: 2 gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/node-gyp/lib/build.js:255:23) gyp ERR! stack at ChildProcess.EventEmitter.emit (events.js:99:17) gyp ERR! stack at Process._handle.onexit (child_process.js:678:10) gyp ERR! System Darwin 12.2.0 gyp ERR! command "node" "/usr/local/bin/node-gyp" "configure" "rebuild" gyp ERR! cwd /Volumes/Users HD/jason/git/node-scrypt gyp ERR! node -v v0.8.19 gyp ERR! node-gyp -v v0.8.4 gyp ERR! not ok

    On 28/02/2013, at 17:30 , Barry Steyn notifications.com wrote:

    Hi

    Please can you do me a favour, can you checkout the "mac_architecture" branch, and then run "node-gyp configure rebuild" and tell me what the output is.

    — Reply to this email directly or view it on GitHub.

    点赞 评论 复制链接分享
  • weixin_39940425 weixin_39940425 2020-12-28 06:44

    Hi

    I don't know if you have the correct branch there. But it would be easier if I could communicate with you over google chat. My email address is barry.steyn.com - can you please setup a chat request pls.

    点赞 评论 复制链接分享
  • weixin_39940425 weixin_39940425 2020-12-28 06:44

    This has now been solved. This library now supports MAC OS.

    点赞 评论 复制链接分享
  • weixin_39614546 weixin_39614546 2020-12-28 06:44

    How did you solve the "sys/sysinfo.h" bug on OS X ?

    点赞 评论 复制链接分享

相关推荐