1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

fastTextのインストールエラー

Posted at

fastTextのインストール

$ git clone https://github.com/facebookresearch/fastText.git
$ cd fastText
$ make

まず,上記のようにfastTextをcloneし,makeを実行します。

しかし,私の場合はここで,

error: no member named 'uint8_t' in the global namespace
error: no member named 'uint16_t' in the global namespace
...
fatal error: too many errors emitted, stopping now [-ferror-limit=]

と,大量のエラーが出てきてしまいました。

ここで,以下コマンドを実行後に再度makeを実行するとうまくいきました。

$ sudo mv /usr/local/include /usr/local/include.org

どうもmacOSをアップグレードした際に残った古いヘッダファイルが原因のようです。
詳しくは以下リンクを見てください。
macOSでコンパイルエラー: unknown typeとかno memberとかが大量に出たらやること

最後に,

$ pip install fasttext

を実行してください。

参考

macOSでコンパイルエラー: unknown typeとかno memberとかが大量に出たらやること

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?