I already did ash.exe /bin/rebaseall -v without errors but I still get the following error when trying to ./configure:
Checking for program g++ or c++ : /usr/bin/g++
/node/wscript:232: error: could not configure a cxx compiler
I installed gcc4-g++ 4.5.x, openssl and all the needed dependencies.
Are you carefully following the steps from: github.com/joyent/node/wiki/Building-node.js-on-Cygwin-(Windows) ?
It suggests running another command and then rebooting after rebase.
Related
Does anyone know how to fix this error?
I am currently trying to install Haskell on Mac using the instructions from https://www.haskell.org/ghcup/.
Installation starts with the following command line:
curl --proto '=https' --tlsv1.2 -sSf https://get-ghcup.haskell.org | sh
However at a certain moment I receive this error:
Build failed with NonZeroExit 77 "./configure" ["--prefix=/Users/not_root/.ghcup/ghc/8.8.3"]
Check the logs at ~/.ghcup/logs and the build directory"/var/folders/n0/g0qh09_s46ndjzmy1jctj7f00000gr/T/ghcup-iyHoc8/ghc-8.8.3" for more clues.
"ghcup --cache install" failed!
This are the log files:
ghc-configure.log:
checking for gcc... gcc
checking whether ln -s works... yes
checking for gsed... sed
checking XCode version... xcode-select: error: tool 'xcodebuild'requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance
not found (too old?)
checking for gcc... gcc
checking whether the C compiler works... no
checking for gsed... sed
checking XCode version... xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance
not found (too old?)
checking for gcc... gcc
checking whether the C compiler works... no
configure: error: in `/private/var/folders/n0/g0qh09_s46ndjzmy1jctj7f00000gr/T/ghcup-iyHoc8/ghc-8.8.3':
checking XCode version... xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance
not found (too old?)
checking for gcc... gcc
checking whether the C compiler works... no
configure: error: in `/private/var/folders/n0/g0qh09_s46ndjzmy1jctj7f00000gr/T/ghcup-iyHoc8/ghc-8.8.3':
configure: error: C compiler cannot create executables
not found (too old?)
checking for gcc... gcc
checking whether the C compiler works... no
configure: error: in `/private/var/folders/n0/g0qh09_s46ndjzmy1jctj7f00000gr/T/ghcup-iyHoc8/ghc-8.8.3':
configure: error: C compiler cannot create executables
See `config.log' for more details
This is the ghcup.log:
Debug: Receiving download info from: GHCupURL
Debug: Unable to get/parse Last-Modified header
Debug: Requested to install GHC with Version {_vEpoch = Nothing, _vChunks = [[Digits 8],[Digits 8],[Digits 3]], _vRel = []}
Debug: Identified Platform as: PlatformResult {_platform = Darwin, _distroVersion = Just (General (Version {_vEpoch = Nothing, _vChunks = [[Digits 10],[Digits 15]], _vRel = []}))}
Info: downloading: https://downloads.haskell.org/~ghc/8.8.3/ghc-8.8.3-x86_64-apple-darwin.tar.xz
Info: verifying digest of: /Users/not_root/.ghcup/cache/ghc-8.8.3-x86_64- apple-darwin.tar.xz
Info: Unpacking: /Users/not_root/.ghcup/cache/ghc-8.8.3-x86_64-apple-darwin.tar.xz
Info: Installing GHC (this may take a while)
Error: Build failed with NonZeroExit 77 "./configure" ["--prefix=/Users/not_root/.ghcup/ghc/8.8.3"]
Check the logs at ~/.ghcup/logs and the build directory "/var/folders/n0/g0qh09_s46ndjzmy1jctj7f00000gr/T/ghcup-iyHoc8/ghc-8.8.3" for more clues.
When I had this same issue, I got it working by running xcode-select --install in my terminal to update the macOS command line development tools, as suggested in "Installing haskell on mac OS" on /r/haskell.
This is probably related to improperly installed or outdated XCode command line tools. Unfortunately, it looks like xcode-select --install doesn't work anymore (this is what another answer from 2 years ago suggests).
So try the following:
make sure XCode is installed and in the latest version (do this in App Store)
if it has been recently updated or installed, you must launch the whole XCode app
it will most likely ask for your (root) password after this first launch, which will allow XCode to install/update the XCode command line tools (that's what you need)
you can then quit XCode
it might make sense to restart the zsh terminal (e.g. iTerm if you use it)
try again launching the curl ... Haskell installation script from the terminal (iTerm) and now it's very likely it'll work OK
I’m trying to install node on a Raspberry Pi
I’m connected to it’s command line using screen
I installed LinuxBrew successfully, however whenever I try and install a package
If I do:
brew install node (--host)
I get:
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... configure: error: in `/tmp/pkg-config20160301-6502-vg0e9w/pkg-config-0.29':
configure: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details
Error: Unable to locate the system's glibc
When I try and install glibc with: brew install glibc --with-binutils --with-linux-headers
I get the exact same error.
Does anyone have any idea what's going on?
P.S: It's a Model 2 B Pi
aTdHvAaNnKcSe
Github page for the OS is here: https://github.com/rellermeyer/course_os
From the wiki in the Github page, it indicates me to install glib and texinfo. It also indicates me how to build the toolchain.
On my first attempt at building, it told me I needed wget and I installed using HomeBrew. When issuing the command $ brew list, I get:
$ brew list
cloog018 glib make postgresql wget
coreutils gmp4 mpfr2 python
gcc48 isl011 openssl readline
gdbm libffi ossp-uuid sqlite
gettext libmpc08 pkg-config texinfo
Which shows me I have everything I need. However, on the second attempt it gives me an error:
configure: WARNING: you should use --build, --host, --target
configure: WARNING: invalid host type: Systems/course_os/toolchain/arm-none-eabi
checking build system type... Invalid configuration `Systems/course_os/toolchain/arm-none-eabi': machine `Systems/course_os/toolchain/arm-none' not recognized
configure: error: /bin/sh ../../src/gcc-4.8.1/config.sub Systems/course_os/toolchain/arm-none-eabi failed
I don't understand the warning and what it is it's missing. Additionally, when I try to do the same steps with Ubuntu, it runs perfectly and I'm able to go on to building the kernel and run Hello World. What does Ubuntu have that OSX doesn't that makes the OS run? Could it be an issue with gcc?
Note: I'm running OSX Yosemite 10.10 and Ubuntu 14.04.
I found an answer to my problem. There was an issue with one of my target folders being two words. I changed it from Operating System to OS and it ran perfectly. Thanks!
I have installed OpenMPI via MacPorts on my OSX system (running Version 10.8.3). I found the C wrapper compiler in /opt/local/lib/openmpi/bin/mpicc, and
/opt/local/lib/openmpi/bin/mpicc test.c
compiles normally. Following the ideas in this post, I issued the following command
PATH=$PATH:~/opt/local/lib/openmpi/bin
which I thought would allow me to compile with
mpicc test.c
However, this gives the following error:
-bash: mpicc: command not found
What have I done wrong?
Just kidding: I should've used
PATH=$PATH:/opt/local/lib/openmpi/bin
rather than
PATH=$PATH:~/opt/local/lib/openmpi/bin
I am making an linux system following the procedure in lfs. But while i was following the fifth step(i.e. the one before make) on this page, i get an error at the last.
configure: error: linker with -z relro support required
Now after this if i call make i get an error
make: *** No targets specified and no makefile found. Stop.
I am running this on a ubuntu 12.04 machine.
How to fix this error?
Do the following:-
sudo apt-get install gawk
and then retry. This worked for me.