Skip to content
This repository has been archived by the owner on Mar 12, 2019. It is now read-only.

node 7.0.0 did not build (WSL) #178

Closed
2 tasks done
eliw00d opened this issue Nov 22, 2016 · 6 comments
Closed
2 tasks done

node 7.0.0 did not build (WSL) #178

eliw00d opened this issue Nov 22, 2016 · 6 comments

Comments

@eliw00d
Copy link

eliw00d commented Nov 22, 2016

  • Ran brew update and retried your prior step?
  • Ran brew doctor, fixed as many issues as possible and retried your prior step?

When I try to install node via Linuxbrew in Bash on Ubuntu on Windows, I get the following error:

eliw0@eliw00d-PC:/mnt/c$ brew install node -v
==> Downloading https://nodejs.org/dist/v7.0.0/node-v7.0.0.tar.xz
Already downloaded: /home/eliw0/.cache/Homebrew/node-7.0.0.tar.xz
==> Verifying node-7.0.0.tar.xz checksum
==> ./configure --prefix=/home/eliw0/.linuxbrew/Cellar/node/7.0.0 --without-npm --without-snapshot
Failed to execute: ./configure
==> Formula
Path: /home/eliw0/.linuxbrew/Library/Taps/homebrew/homebrew-core/Formula/node.rb
==> Configuration
HOMEBREW_VERSION: 1.0.7-12-g3335f11
ORIGIN: https://github.com/Linuxbrew/brew.git
HEAD: 3335f11b180974b59ddf33932a6a4bd19d5b6b3b
Last commit: 4 days ago
Core tap ORIGIN: https://github.com/Linuxbrew/homebrew-core
Core tap HEAD: 6d3f5a3026ad149669c8a1646c1ba5dd929fa606
Core tap last commit: 2 days ago
HOMEBREW_PREFIX: /home/eliw0/.linuxbrew
HOMEBREW_REPOSITORY: /home/eliw0/.linuxbrew
HOMEBREW_CELLAR: /home/eliw0/.linuxbrew/Cellar
HOMEBREW_BOTTLE_DOMAIN: https://linuxbrew.bintray.com
CPU: octa-core 64-bit sandybridge
Homebrew Ruby: 2.3.1 => /usr/bin/ruby2.3
Clang: N/A
Git: 2.7.4 => /usr/bin/git
Perl: /usr/bin/perl
Python: /usr/bin/python => /usr/bin/python2.7
Ruby: /usr/bin/ruby => /usr/bin/ruby2.3
Java: N/A
Kernel: Linux 3.4.0+ x86_64 GNU/Linux
OS: Ubuntu 16.04.1 LTS
Codename: xenial
OS glibc: 2.23
OS gcc: 5.4.0
Linuxbrew glibc: N/A
Linuxbrew gcc: N/A
Linuxbrew xorg: N/A
==> ENV
CC: /usr/bin/gcc-5
CXX: /usr/bin/g++-5
OBJC: /usr/bin/gcc-5
OBJCXX: /usr/bin/g++-5
CFLAGS: -Os -w -pipe -march=native
CXXFLAGS: -Os -w -pipe -march=native
CPPFLAGS: -isystem/home/eliw0/.linuxbrew/include
LDFLAGS: -L/home/eliw0/.linuxbrew/lib -Wl,--dynamic-linker=/home/eliw0/.linuxbrew/lib/ld.so -Wl,-rpath,/home/eliw0/.linuxbrew/lib
MAKEFLAGS: -j8
CMAKE_PREFIX_PATH: /home/eliw0/.linuxbrew
PKG_CONFIG_LIBDIR: /home/eliw0/.linuxbrew/lib/pkgconfig
HOMEBREW_BUILD_FROM_SOURCE: 1
PATH: /home/eliw0/.linuxbrew/bin:/home/eliw0/.linuxbrew/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/home/eliw0/.linuxbrew/Library/Homebrew/cask/cmd:/home/eliw0/.linuxbrew/Library/Homebrew/shims/scm
CPATH: /home/eliw0/.linuxbrew/include
LD_LIBRARY_PATH: /home/eliw0/.linuxbrew/Cellar/node/7.0.0/lib:/home/eliw0/.linuxbrew/Cellar/node/7.0.0
LD_RUN_PATH: /home/eliw0/.linuxbrew/lib
LIBRARY_PATH: /home/eliw0/.linuxbrew/lib

Error: node 7.0.0 did not build
Logs:
     /home/eliw0/.cache/Homebrew/Logs/node/01.configure

Any thoughts?

@sjackman
Copy link
Member

Try removing all installed packages and try

export HOMEBREW_BUILD_FROM_SOURCE=1
brew install -sv node

If that fails, please report the output of

brew gist-logs node

@sjackman sjackman self-assigned this Nov 22, 2016
@eliw00d
Copy link
Author

eliw00d commented Nov 22, 2016

That worked. Thanks!

@sjackman
Copy link
Member

Glad to hear it!

@sjackman
Copy link
Member

I've created this wiki page: https://github.com/Linuxbrew/brew/wiki/Windows

@eliw00d
Copy link
Author

eliw00d commented Nov 23, 2016

In order to install git, I had to use brew install openssl --without-test. Now I am trying to install hub and get the following error:

eliw0@eliw00d-PC:~$ brew install hub
/home/eliw0/.linuxbrew/bin/git: error while loading shared libraries: libcrypto.so.1.0.0: cannot enable executable stack as shared object requires: Invalid argument
/home/eliw0/.linuxbrew/bin/git: error while loading shared libraries: libcrypto.so.1.0.0: cannot enable executable stack as shared object requires: Invalid argument
/home/eliw0/.linuxbrew/bin/git: error while loading shared libraries: libcrypto.so.1.0.0: cannot enable executable stack as shared object requires: Invalid argument
/home/eliw0/.linuxbrew/bin/git: error while loading shared libraries: libcrypto.so.1.0.0: cannot enable executable stack as shared object requires: Invalid argument
/home/eliw0/.linuxbrew/bin/git: error while loading shared libraries: libcrypto.so.1.0.0: cannot enable executable stack as shared object requires: Invalid argument
/home/eliw0/.linuxbrew/bin/git: error while loading shared libraries: libcrypto.so.1.0.0: cannot enable executable stack as shared object requires: Invalid argument
/home/eliw0/.linuxbrew/bin/git: error while loading shared libraries: libcrypto.so.1.0.0: cannot enable executable stack as shared object requires: Invalid argument
/home/eliw0/.linuxbrew/bin/git: error while loading shared libraries: libcrypto.so.1.0.0: cannot enable executable stack as shared object requires: Invalid argument
/home/eliw0/.linuxbrew/bin/git: error while loading shared libraries: libcrypto.so.1.0.0: cannot enable executable stack as shared object requires: Invalid argument
Warning: git-2.10.1 already installed
Error: Git must be installed and in your PATH!
==> Installing dependencies for hub: go
==> Installing hub dependency: go
==> Downloading https://storage.googleapis.com/golang/go1.7.3.src.tar.gz
/home/eliw0/.linuxbrew/opt/curl/bin/curl: error while loading shared libraries: libcrypto.so.1.0.0: cannot enable executable stack as shared object requires: Invalid argument
Trying a mirror...
==> Downloading https://fossies.org/linux/misc/go1.7.3.src.tar.gz
/home/eliw0/.linuxbrew/opt/curl/bin/curl: error while loading shared libraries: libcrypto.so.1.0.0: cannot enable executable stack as shared object requires: Invalid argument
Error: Failed to download resource "go"
Download failed: https://fossies.org/linux/misc/go1.7.3.src.tar.gz

Since you created a wiki for this process, is there anything else I am missing or should do to get my environment set up with brew?

@sjackman
Copy link
Member

sjackman commented Nov 23, 2016

That's a known issue with BashOnWindows. See the open issue here: microsoft/WSL#286
One suggested workaround is

execstack -c `brew --prefix`/lib/libcrypto.so.1.0.0

Please report back if it works.

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

No branches or pull requests

2 participants