OSX Mojave MacPorts install fails

Added by Uwe Mayer 6 months ago

after upgrading to OSX Mojave, I am not able to install AMC anymore.

sudo port install auto-multiple-choice
Password:
---> Computing dependencies for auto-multiple-choice
---> Building auto-multiple-choice
Error: Failed to build auto-multiple-choice: command execution failed
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_x11_auto-multiple-choice/auto-multiple-choice/main.log for details.
Error: Follow https://guide.macports.org/#project.tickets to report a bug.
Error: Processing of port auto-multiple-choice failed

I attached the log file.

I have no Idea where to start.

I uninstalled and reinstalled MacPorts from scratch: MacPorts 2.5.4.
Other ports such as ffmpeg and imagemagick install without problem.

Many thanks for your help!

OSX 10.14 MacBook Air Mid 2014 / Mac Mini Late 2014

log.txt - /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_x11_auto-multiple-choice/auto-multiple-choice/main.log (462.4 kB)


Replies (39)

RE: OSX Mojave MacPorts install fails - Added by Joël Brogniart 6 months ago

Apparemment, les polices de caractères Déja vu n'ont pas été trouvées. Avez vous suivi les instructions de Installation d'AMC sous macOS avec MacPorts ?

RE: OSX Mojave MacPorts install fails - Added by Uwe Mayer 6 months ago

merci pour votre aide, oui j'ai suivi toutes les instructions.
les dernieres annees je n'ai jamais eu a le faire. port install auto-multiple-choice suffisait.

Maintenant avec MacPorts l'installation marche mais ne logiciel ne démarre pas:

sudo port install auto-multiple-choice
Password:
--->  Computing dependencies for auto-multiple-choice
--->  Cleaning auto-multiple-choice
--->  Scanning binaries for linking errors
--->  No broken files found.                             
--->  No broken ports found.

auto-multiple-choice
cannot make GdkRectangle synonymous to the unregistered type GUserDirectory at /opt/local/lib/perl5/vendor_perl/5.26/Gtk3.pm line 479.
BEGIN failed--compilation aborted at /opt/local/lib/AMC/perl/AMC-gui.pl line 23.

merci pour tout aide

RE: OSX Mojave MacPorts install fails - Added by Joël Brogniart 6 months ago

I can't reproduce the problem. I removed all ports from my installation.

sudo port uninstall installed

Cleaned all stuff.

sudo port clean -f --all all

Updated MacPorts

sudo port selfupdate

Then installed AMC

sudo port install auto-multiple-choice

When installation was done, I launched AMC

auto-multiple-choice

And AMC started fine.

RE: OSX Mojave MacPorts install fails - Added by Nicolas S. 6 months ago

Hi,

I observe the same problem as Joël, but with MacOS 10.13.6.

I just tried the proposed process, but obtained the same error while launching AMC.

I don't know if it could linked to the parallel use of HomeBrew, but I don't think, since I have Perl5.26 on MacPort and Perl 5.28 on brew and the error message is clearly speaking about the 5.26 one (macport).

Does anybody have a proposition ?

Thx a lot.

RE: OSX Mojave MacPorts install fails - Added by Alexis Bienvenüe 6 months ago

cannot make GdkRectangle synonymous to the unregistered type GUserDirectory at /opt/local/lib/perl5/vendor_perl/5.26/Gtk3.pm line 479.

This problem has been solved in a particular scenario: see #603. The user reinstalled homebrew and macports and then auto-multiple-choice; this finally worked.
There seems to be some negative interference between libraries installed by homebrew and macports, in different versions.

RE: OSX Mojave MacPorts install fails - Added by Nicolas S. 6 months ago

That's it ! :)
Thx a lot :)

In order to contribute a little, here is another information: I can't install again Inkscape. If I install GTK+ throw Homebrew, then AMC doesn't work anymore.

Thx again for the solution and the AMC software,
Nicolas.

RE: OSX Mojave MacPorts install fails - Added by Maël Valais 6 months ago

Btw, did you try installing amc through Homebrew with https://github.com/maelvalais/homebrew-amc? :-)

RE: OSX Mojave MacPorts install fails - Added by Jérôme Courtin 6 months ago

Bonjour,

j'ai exactement le même PB et j'en suis au même point :

WARNING *: Failed to load shared library 'libcairo-gobject.2.dylib' referenced by the typelib: dlopen(libcairo-gobject.2.dylib, 9):
image not found at /opt/local/lib/perl5/vendor_perl/5.26/Gtk3.pm line 479. (AMC-gui.pl:49437):
Gtk-WARNING *
: 22:53:54.125: cannot open display:

J'ai desinstallé/réinstallé home brew puis réinstallé Macport (sans desinstaller ?) puis réinstallé auto-multiple-choice (selon la démarche ci-dessus)
(l'erreur a sensiblement changé mais c'est lié à gtk3)

Je dois mal m'y prendre mais la manoeuvre n'est pas très détaillée dans #603.
Merci pour votre aide.

RQ : l'installation termine depuis que j'ai rajouté des polices
RQ : sous home brew ça démarrait mais il ne trouvait pas latex

RE: OSX Mojave MacPorts install fails - Added by Nicolas S. 6 months ago

For the MacPort version, did you tried to install & launch AMC while homebrew is not installed ? (to not reinstall it)

For the homebrew installation, you need to install mactex and next to re-open your terminal.

brew cask install mactex

OSX Mojave sous brew --> permission Denied - Added by Jérôme Courtin 6 months ago

Bonjour et merci,

- j'ai tout ré-installé sous brew (après avoir totalement effacé mac port)
- j'ai installé auto-multiple-choice puis Mactex comme indiqué.
(j'ai fait un latex-link aussi)

il démarre mais pour "éditer le fichier source" :
*Can't exec "/Library/TeX/texbin": Permission denied at /usr/local/Cellar/auto-multiple-choice/1.3.0.2199_2/lib/AMC/perl/AMC-gui.pl line 1362.
*et ça ne marche pas en sudo non plus

merci pour votre aide.

PS : brew info maelvalais/amc/auto-multiple-choice. me dit :
Conflicts with:
auto-multiple-choice-devel (because both install `bin/auto-multiple-choice`)
/usr/local/Cellar/auto-multiple-choice/1.3.0.2199_2 (1,105 files, 95.6MB) *
Poured from bottle on 2018-11-01 at 14:54:02
et
Issue of 'Linux Libertine O' not found: mais je l'ai rajouté dans le répertoire des Font

PS : mon brew doctor a des warning ??
Having additional scripts in your path can confuse software installed via
Homebrew if the config script overrides a system or Homebrew provided
script of the same name. We found the following "config" scripts:
/Users/jcourtin/miniconda3/bin/icu-config
/Users/jcourtin/miniconda3/bin/freetype-config
/Users/jcourtin/miniconda3/bin/libpng16-config
/Users/jcourtin/miniconda3/bin/python3.6m-config
/Users/jcourtin/miniconda3/bin/libpng-config
/Users/jcourtin/miniconda3/bin/python3-config
/Users/jcourtin/miniconda3/bin/python3.6-config

RE: OSX Mojave MacPorts install fails - Added by Maël Valais 6 months ago

  1. About the error:
    *Can't exec "/Library/TeX/texbin": Permission denied at /usr/local/Cellar/auto-multiple-choice/1.3.0.2199_2/lib/AMC/perl/AMC-gui.pl line 1362.
    You are right, this is a Homebrew-installed auto-multiple-choice. I have absolutely no idea why this error is showing up. What's weird is that /library/TeX/texbin isn't supposed to be a binary (it is rather a directory). Could you reproduce with logging enabled (Help > check the Debugging box) and send us the log.
  2. About the message appearing at the end of the installation by Homebrew:
    1) Issue of 'Linux Libertine O' not found
    This is not a problem, it is a simple warning (part of the Caveats section in brew info auto-multiple-choice). As I wanted people to know the various issues, I added some common issues in the Caveats, i.e., I tell people how to react if an error 'Linux Libertine O' appears. Don't worry about these caveats (I might remove them btw but I still think people should be warned).
  3. About the conflict thing: this is a mere warning that telling you that auto-multiple-choice and auto-multiple-choice-devel cannot be installed simultanously. No worry about that either.
  4. About the brew doctor warnings: either ignore them (they aren't really alarming).
  5. About the GTK3 error:
     WARNING *: Failed to load shared library 'libcairo-gobject.2.dylib' referenced by the typelib: dlopen(libcairo-gobject.2.dylib, 9): 
    image not found at /opt/local/lib/perl5/vendor_perl/5.26/Gtk3.pm line 479. (AMC-gui.pl:49437): 
    Gtk-WARNING *: 22:53:54.125: cannot open display:
    This error cannot come from an auto-multiple-choice installed by Homebrew as Homebrew installs things in /usr/local, not /opt/local. This error probably comes from auto-multiple-choice installed by Macports .
  6. About Homebrew-installed auto-multiple-choice starting but not finding latex: did you have a latex distribution installed at tha t time? As mentioned in the caveats (in brew info auto-multiple-choice), you must have a latex distribution installed. In fact, brew install auto-multiple-choice will not install Mactex, either install it using the official distribution or use the command
    brew cask install mactex
    Note that you can check whether Mactex is installed or not by trying (in the terminal) the command latex --version.
  7. And finally, about the wrong version of Perl picked up by Macports-installed auto-multiple-choice:
    > I don't know if it could linked to the parallel use of HomeBrew, but I don't think, since I have Perl5.26 on MacPort and Perl 5.28 on brew and the error message is clearly speaking about the 5.26 one (macport).
    I made sure that this issue won't happen using Homebrew: the Perl used is sandboxed and not related to the system perl and thus installing other versions of perl cannot interfere with auto-multiple-choice.

RE: OSX Mojave MacPorts install fails - Added by Jérôme Courtin 6 months ago

re-Bonjour,

sous Macport:
J'ai totalement effacé Homebrew et ses packages et re-tenter avec Macport (ré-installation complète)
Ça bloque toujours avec la procédure installant Perl et dblatex au préalable.
installation sans PB mais auto-multiple-choice ne démarre pas suite au warning graphique ci-dessous

Macport :
RQ : pour le pb 5 GTK3 error elle concerne clairement macport. J'ai actuellement le même genre d'erreur graphique :
WARNING *: Failed to load shared library 'libcairo-gobject.2.dylib' referenced by the typelib: dlopen(libcairo-gobject.2.dylib, 9): image not found at /opt/local/lib/perl5/vendor_perl/5.26/Gtk3.pm line 479.
(AMC-gui.pl:32181): Gtk-WARNING *
: 18:56:47.260: cannot open display:
Je ne sais pas comment débloquer cela semble un pb de librairie graphique.
RQ : je suis sous Mac OS Mojave.


Sous Homebrew :
pour ma démarche précédente (je ne peux pas avoir le log ayant tout effacé)
mais je suis sûr d'avoir utilisé la commande brew cask install mactex, j'ai aussi essayé le site officiel.
Homebrew : auto-multiple-choice demarre mais le lancement de l'éditeur (ou le choix de certain modèles dès le départ) provoque un message d'erreur type :
*Can't exec "/Library/TeX/texbin": Permission denied at /usr/local/Cellar/auto-multiple-choice/1.3.0.2199_2/lib/AMC/perl/AMC-gui.pl line 1362.


Est-ce qu'il y a aurait une image disque pour virtual Box avec AMC et les outils latex installés ?
Le seul que j'ai trouvé ne se télécharge pas :
http://sesaprof.sesamath.net/doc/amc/AMC_XFCE_Mint18-64bits.vdi

encore merci pour votre aide.

RE: OSX Mojave MacPorts install fails - Added by Maël Valais 6 months ago

Homebrew : auto-multiple-choice demarre mais le lancement de l'éditeur (ou le choix de certain modèles dès le départ) provoque un message d'erreur type :

*Can't exec "/Library/TeX/texbin": Permission denied at
/usr/local/Cellar/auto-multiple-choice/1.3.0.2199_2/lib/AMC/perl/AMC-gui.pl line 1362.

This feels like a bug in the Homebrew formula I wrote 😮 I could really use some help figuring out where this bug comes from. I would really appreciate a MWE as well as a log file 😀 Thanks!

About the VM, there probably is what you are looking for; you might want to look at Vagrant Cloud, they are hosting many images.

RE: OSX Mojave MacPorts install fails - Added by Jérôme Courtin 6 months ago

Bonjour,

j'ai refait la procédure d'installation de Homebrew avec une installation de Mactex avant celle de AMC.
je précise que j'ai gardé mac port mais déplacé dans ~/macport (suggéré par homebrew)
tjrs le même pb : Can't exec "/Library/TeX/texbin": Permission denied at /usr/local/Cellar/auto-multiple-choice/1.3.0.2199_2/lib/AMC/perl/AMC-gui.pl line 1362.

j'ai fait deux fichier log.
- sur la base d'un projet existant
- création nouveau projet simple


concernant le répertoire /Library/TeX/texbin il est bien executable:
lrwxr-xr-x 1 root wheel 29 2 nov 09:52 texbin -> Distributions/Programs/texbin
C'est un lien et contient des exécutables et des liens exécutables aussi


enfin pour l'installation sous mac port : y a t'il un moyen de traiter ce PB ?
WARNING *: Failed to load shared library 'libcairo-gobject.2.dylib' referenced by the typelib: dlopen(libcairo-gobject.2.dylib, 9): image not found at /opt/local/lib/perl5/vendor_perl/5.26/Gtk3.pm line 479. (AMC-gui.pl:32181): Gtk-WARNING *: 18:56:47.260: cannot open display:

je ne désespère pas mais c'est vraiment compliqué ! ;-)

encore merci pour votre aide.

RE: OSX Mojave MacPorts install fails - Added by Alexis Bienvenüe 6 months ago

Can't exec "/Library/TeX/texbin": Permission denied

Dans la configuration d'AMC, quelle est la valeur de Général/Programmes de visualisation/Editeur LaTeX ?

RE: OSX Mojave MacPorts install fails - Added by Maël Valais 6 months ago

Alexis a toujours une longueur d’avance sur moi ! 😊
D’après le log, effectivement, on pourrait penser que ça vient de soucis avec la configuration AMC :

  40133,   0.00] Command // [40133] : /Library/TeX/texbin /Users/jcourtin/Projets-QCM/QCM_test/simple.tex
Can't exec "/Library/TeX/texbin": Permission denied at /usr/local/Cellar/auto-multiple-choice/1.3.0.2199_2/lib/AMC/perl/AMC-gui.pl line 1362.

RE: OSX Mojave MacPorts install fails - Added by Jérôme Courtin 6 months ago

il s'agit de /Library/TeX/texbin

Si c'est un PB comment le configurer ?
J'ai installé Mactex avec brew cask install mactex

RE: OSX Mojave MacPorts install fails - Added by Alexis Bienvenüe 6 months ago

Il faut remplacer par le nom du programme (la commande, donc) que vous souhaitez utiliser pour éditer un fichier LaTeX.

RE: OSX Mojave MacPorts install fails - Added by Jérôme Courtin 6 months ago

Merci,

si je comprends tout serait fonctionnel en terme d'installation mais il faut que je le configure maintenant ?

RQ : j'ai plusieurs pdflatex
/usr/local/texlive/2018/bin/x86_64-darwin/pdflatex
/Users/jcourtin/macports/local/libexec/texlive/texbin/pdflatex

ayant déplacé mac port pour ne pas avoir d'interférence.

Concrètement je tape quoi à la place de /Library/TeX/texbin ?
Où est-ce que je peux apprendre à le configurer dans la documentation fournie ?

merci

RE: OSX Mojave MacPorts install fails - Added by Alexis Bienvenüe 6 months ago

Le contenu de Général/Programmes de visualisation/Editeur LaTeX doit être le nom de commande d'un éditeur de fichier LaTeX (peut-être un éditeur de texte standard, ou bien texstudio ou similaire), et non un moteur LaTeX comme pdflatex.
Une valeur raisonnable aurait dû être donnée par défaut par l'installation ; je ne sais pas ce qui n'a pas fonctionné ici.

RE: OSX Mojave MacPorts install fails - Added by Philippe Vernant 3 months ago

Moving to osx majave, I have the following error when installing with macports:

:info:build /opt/local/lib/gcc5/gcc/x86_64-apple-darwin17/5.5.0/include-fixed/math.h:45:23: fatal error: sys/cdefs.h: No such file or directory

looking into /opt/local/lib/gcc5/gcc/, I only have a x86_64-apple-darwin18, any idea on how I could fix that?

Thanks,
Phil

RE: OSX Mojave MacPorts install fails - Added by Joël Brogniart 3 months ago

The problem is with GCC5. Recent versions of AMC don't need GCC5. Did you install Mojave version of Macports first?

If AMC is the only port you want, it could be simpler to remove all ports and reinstall AMC.

Remove all ports

sudo port uninstall installed

Update portfiles

sudo port selfupdate

Install AMC with Texlive

sudo port install auto-multiple-choice

RE: OSX Mojave MacPorts install fails - Added by Philippe Vernant 3 months ago

Thanks Joël,
The problem is that I already have several other programs set up with macports, so removing everything means that I would have to reinstall all the others. I did remove GCC5, but still the same message. I don't understand why the installation is looking for GCC5 when my active gcc is not that one. I guess I will have to start from scratch ...

RE: OSX Mojave MacPorts install fails - Added by Joël Brogniart 3 months ago

Old versions of AMC relied on pdftk and pdftk is build with the java compiler of GCC5.

RE: OSX Mojave MacPorts install fails - Added by Philippe Vernant 3 months ago

But I'm trying to install the latest version of AMC, so it should not look for pdftk and gcc5, or am I missing something ?

1 2 Next » (1-25/39)