This repository was archived by the owner on Jul 31, 2023. It is now read-only.

Description
I want to install the chrome language detection (cld) https://github.com/mzsanford/cld for Python.
I am working on OS X 10.10 with Python 3.3, installed through a download of the .dmg from the Pythonwebsite.
What did I do so far?
- Downloaded and updated xCode to the most recent version
- Command Line Tools for xCode installed with that line
$ xcode-select –install
- Downloaded the
GNU, C and C++ Compilerhere http://hpc.sourceforge.net and installed via $ sudo tar xvf gcc-4.9-bin.tar -C /
- Install the
libcld C++ library following the instructions on https://github.com/mzsanford/cld (I installed it from source, not with homebrew)!
- Installed the
pkg-config package $ git clone git://anongit.freedesktop.org/pkg-config
Then I followed the steps described to install the Pythonbindings:
$ git clone http://github.com/mzsanford/cld.git
$ cd cld/ports/python
$ make install # This will prompt for your password
Which gave me this error message:
python -u setup.py build
Traceback (most recent call last):
File "setup.py", line 17, in <module>
**pkgconfig('cld'))
TypeError: __init__() keywords must be strings
make: *** [build] Error 1`
I also downloaded the source and tried to install it with python3.3 setup.py which gives me this
pkg-config has not been found but this setup script relies on it.
Well, I installed id, but it seems that it does not find it.
Might that be a problem that it installed it to the Python the system is using (which would 2.7) while I use Python3.3? Or other suggestions?