bolshi
Goto Top

Fehlermeldung bei brew install phplint

Hallo,

beim Versuch unter 14.04 phplint per brew zu installieren kommt folgende Fehlermeldung:

ip@ip-Parallels-Virtual-Platform:~/phplint$ brew install phplint
==> Installing phplint from homebrew/homebrew-php
==> Downloading http://www.icosaedro.it/phplint/phplint-pure-c-1.1_20130803.tar.gz
Already downloaded: /home/ip/.cache/Homebrew/phplint-1.1-20130803.tar.gz
==> Patching
patching file include/missing.c
patching file phpl
==> /usr/bin/gcc-4.9 -fnested-functions src/phplint.c -o src/phplint
2014-11-22 08:23:38 +0100

/usr/bin/gcc-4.9 -fnested-functions src/phplint.c -o src/phplint

gcc-4.9: error: unrecognized command line option ‘-fnested-functions’

Aktuell gibt es eine 2er Version von phplint. Wo kann ich definieren, dass das 2er Release geladen wird?

Content-Key: 255632

Url: https://administrator.de/contentid/255632

Printed on: April 19, 2024 at 14:04 o'clock

Member: EvilMoe
EvilMoe Nov 22, 2014 at 08:13:49 (UTC)
Goto Top
Hallo,

Nimm doch einfach gleich das Archiv von der Website: http://www.icosaedro.it/phplint/download.html


Sven
Member: bolshi
bolshi Nov 22, 2014 at 09:51:56 (UTC)
Goto Top
Hab ich getan. Das Problem: 'brew install phplint' holt ungeachtet dessen das 1.1er package:

ip@ip-Parallels-Virtual-Platform:~$ brew install phplint
==> Installing phplint from homebrew/homebrew-php
==> Downloading http://www.icosaedro.it/phplint/phplint-pure-c-1.1_20130803.tar.gz

Wie lassen sich Sublime Text 3 und phplint 2 zur Zusammenarbeit überreden?
Member: EvilMoe
EvilMoe Nov 22, 2014 at 10:21:18 (UTC)
Goto Top
Wenn du den Quellcode von der Website geholt hast, warum benutzt du dann brew und nimmst nicht den runtergeladenen Quellcode?
Member: bolshi
bolshi Nov 28, 2014 at 11:00:16 (UTC)
Goto Top
Frag ich mich auch grad ;)

Gruß und Dank
Member: karlhorky
Solution karlhorky Jan 07, 2015, updated at Feb 19, 2015 at 10:03:58 (UTC)
Goto Top
Um das Problem zu lösen, `apple-gcc42` mit Homebrew installieren:

brew install apple-gcc42

Dann probiere, nochmals phplint mit Homebrew zu installieren. Wenn das noch immer nicht funktioniert, kannst du der Compiler so setzen:

brew install phplint -cc=apple-gcc42

Quellen:
http://georgemastro.com/gcc-4-8-error-unrecognized-command-line-option- ...
https://github.com/Homebrew/homebrew-php/issues/1178#issuecomment-479306 ...