umpirsky / Twig-Gettext-Extractor

The Twig Gettext Extractor is Poedit friendly tool which extracts translations from twig templates.
MIT License
113 stars 32 forks source link

Error when trying to parse twig files #23

Open lmartins opened 9 years ago

lmartins commented 9 years ago

If getting the following message in POEdit, any idea of what might be going wrong?

Fri Jan 30 20:12:03 2015: dyld: Library not loaded: /usr/local/opt/icu4c/lib/libicui18n.53.dylib
Fri Jan 30 20:12:03 2015:   Referenced from: /usr/local/bin/php
Fri Jan 30 20:12:03 2015:   Reason: image not found
Fri Jan 30 20:12:03 2015: Entries in the catalog are probably incorrect.
Fri Jan 30 20:12:03 2015: Updating the catalog failed. Click on 'Details >>' for details.
umpirsky commented 9 years ago

@lmartins Can you please try:

brew uninstall php55-intl
brew install php55-intl
lmartins commented 9 years ago

Hi Saša,

I've tried to run the commands but both of them seem to fail:

 ✘ ⮀ ~/Sites/webipack.dev/wp-content/themes/wip-foster ⮀ ⭠ master ⮀ brew uninstall php55-intl
Error: No such keg: /usr/local/Cellar/php55-intl
 ✘ ⮀ ~/Sites/webipack.dev/wp-content/themes/wip-foster ⮀ ⭠ master ⮀ brew install php55-intl
Error: No available formula for php55-intl
Searching formulae...
Searching taps..

I also reinstalled brew install php55 but it didn't made any difference either. Any tips?

Thanks.

umpirsky commented 9 years ago

@lmartins Nope, sorry, I don't use brew, I found this on https://github.com/Homebrew/homebrew-php/issues/393#issuecomment-51753531.

lmartins commented 9 years ago

Hey Saša,

I've noticed that the path being requested /usr/local/opt/icu4c/lib/libicui18n.53.dylibdoesn't exist. I have a very similar file at that location with the name libicui18n.54.dylib Is there something I can do about this?

Sorry for all the question, im completely lost on this topic.

umpirsky commented 9 years ago

@lmartins Sorry, I really have no idea. :(

onlime commented 9 years ago

Any solution for this? I'm experiencing the same with Macports. Currently installed ports:

# port installed php56*
  php56 @5.6.6_0+libedit (active)
  php56-cgi @5.6.6_0 (active)
  php56-curl @5.6.6_0 (active)
  php56-excel @1.0.1_0 (active)
  php56-gd @5.6.6_0 (active)
  php56-iconv @5.6.6_0 (active)
  php56-imap @5.6.6_0 (active)
  php56-intl @5.6.6_0 (active)
  php56-mbstring @5.6.6_0 (active)
  php56-mcrypt @5.6.6_0 (active)
  php56-mysql @5.6.6_0+mysqlnd (active)
  php56-openssl @5.6.6_0 (active)
  php56-posix @5.6.6_0 (active)
  php56-soap @5.6.6_0 (active)
  php56-sockets @5.6.6_0 (active)
  php56-sqlite @5.6.6_0 (active)
  php56-xdebug @2.3.1_0 (active)
  php56-xmlrpc @5.6.6_0 (active)
  php56-zip @5.6.6_0 (active)
$ port installed libedit
  libedit @20140620-3.1_0 (active)

Poedit throws the following errors upon source scanning:

Tue Mar 10 15:46:20 2015: dyld: Library not loaded: /opt/local/lib/libedit.0.dylib
Tue Mar 10 15:46:20 2015:   Referenced from: /opt/local/bin/php
Tue Mar 10 15:46:20 2015:   Reason: no suitable image found.  Did find:
Tue Mar 10 15:46:20 2015:   /opt/local/lib/libedit.0.dylib: open() failed with errno=1
Tue Mar 10 15:46:20 2015: Entries in the catalog are probably incorrect.
Tue Mar 10 15:46:20 2015: Updating the catalog failed. Click on 'Details >>' for details.

I have already reinstalled php56-intl:

$ sudo port uninstall php56-intl
$ sudo port install php56-intl

no luck so far.