Skip to content
This repository has been archived by the owner on Sep 13, 2022. It is now read-only.

Installing on MAC OS X #28

Closed
atishsawant opened this issue Feb 7, 2018 · 9 comments
Closed

Installing on MAC OS X #28

atishsawant opened this issue Feb 7, 2018 · 9 comments

Comments

@atishsawant
Copy link

atishsawant commented Feb 7, 2018

I’m using MAC OSX and the command:

CXX=/usr/bin/gcc make –e

Doesn’t work when I’m in the unzipped directory? It seems like it fails on the wget command for the underlying zpar from github. Actual output:

make: wget: No such file or directory

**Actually just solved this part.

Still results in this error eventually though:

error: call to function 'operator>>' that is
neither visible in the template definition nor found by argument-dependent
lookup

Same one that I get in the individual zpar directory when trying to install it independently.

So I downloaded the individual zpar, and tried to install that separately but that one leads to errors that I believe are related to clang. Using the same CXX command within that file also didn’t work.

@desilinguist
Copy link
Member

desilinguist commented Feb 7, 2018 via email

@atishsawant
Copy link
Author

That was my earlier mistake. I fixed that. THe call to function error still persists however.

@desilinguist
Copy link
Member

Did you read the warning in the README about how clang will not work and you need to install gcc via either macports or homebrew?

@atishsawant
Copy link
Author

Yep, I used the CXX command as noted to point to the gcc compiler instead to run. But that still persisted.

@desilinguist
Copy link
Member

desilinguist commented Feb 7, 2018 via email

@atishsawant
Copy link
Author

Configured with: --prefix=/Library/Developer/CommandLineTools/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 9.0.0 (clang-900.0.39.2)
Target: x86_64-apple-darwin16.7.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin

is the result.

@desilinguist
Copy link
Member

desilinguist commented Feb 7, 2018 via email

@atishsawant
Copy link
Author

GCC is already installed. I thought by pointing it to /usr/bin/gcc it would fix the problem?

brew install gcc results in "Warning: gcc 7.3.0 is already installed"

@atishsawant
Copy link
Author

Solved the problem. On newer MAC OS X's brew installing gcc, doesn't make the gcc in /usr/bin point to the gcc compiler and it will still be clang. Have to go to where brew installed gcc, and pick out a gcc version from there to compile with.
It still kicked out an error when compiling from the correct file, but in the second run it worked just fine.

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

No branches or pull requests

2 participants