Python3 install issue


(Marian Gilan) #1

Hi guys,

Is anyone having the same issue with python3 (3.6.4)?

$ brew install python3                          
Updating Homebrew...
==> Auto-updated Homebrew!
Updated 2 taps (homebrew/core, caskroom/cask).
No changes to formulae.

==> Downloading https://www.python.org/ftp/python/3.6.4/Python-3.6.4.tar.xz
Already downloaded: /Users/mgi/Library/Caches/Homebrew/python3-3.6.4.tar.xz
==> ./configure --prefix=/Users/mgi/Homebrew/Cellar/python3/3.6.4 --enable-ipv6 --datarootdir=/Users/mgi/Homebrew/Cellar/python3/3.6.4/share --datadir=/Users/mgi/Homebrew/Cellar/
==> make
Last 15 lines from /Users/mgi/Library/Logs/Homebrew/python3/02.make:
		-framework CoreFoundation -ldl  -framework CoreFoundation;
Undefined symbols for architecture x86_64:
  "_libintl_bindtextdomain", referenced from:
      _PyIntl_bindtextdomain in libpython3.6m.a(_localemodule.o)
  "_libintl_dcgettext", referenced from:
      _PyIntl_dcgettext in libpython3.6m.a(_localemodule.o)
  "_libintl_dgettext", referenced from:
      _PyIntl_dgettext in libpython3.6m.a(_localemodule.o)
  "_libintl_gettext", referenced from:
      _PyIntl_gettext in libpython3.6m.a(_localemodule.o)
  "_libintl_textdomain", referenced from:
      _PyIntl_textdomain in libpython3.6m.a(_localemodule.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [Python.framework/Versions/3.6/Python] Error 1

READ THIS: https://docs.brew.sh/Troubleshooting.html

These open issues may also help:
python@3 rename from python3, python@2 rename from python https://github.com/Homebrew/homebrew-core/pull/22263

I tried to uninstall it completely, and also reinstall all the deps. 3.6.3 and all the older versions were ok.


(Marian Gilan) #2

Removing /usr/local/include/libintl.h and /usr/local/lib/libintl.a did the job.