Installation d'asymptote

Tout ce qui concerne le langage Asymptote. Ce langage est utilisable sur le forum via les balises asy.
[participation réservée aux utilisateurs inscrits]
Règles du forum
Merci de soigner la rédaction de vos messages et de consulter ce sujet avant de poster. Pensez également à utiliser la fonction recherche du forum.
rebouxo
Modérateur honoraire
Modérateur honoraire
Messages : 6962
Inscription : mercredi 15 février 2006, 13:18
Localisation : le havre
Contact :

Installation d'asymptote

Message non lu par rebouxo »

Salut c'est encore moi !
Bon il me semble que je fais ce qu'il faut pour installer asymptote dans mon répertoire personnel.
Je télécharge asymptote2.47.src.tgz

Code : Tout sélectionner

gunzip asymptote2.47.src.tgz
tar -xf asymptote2.47.src.tar
cd asymptote2.47
./autogen
./configure --prefix=$HOME/asy 
make all
make install
Il n'y a pas d'erreur d'installation sur le ./configure, ni sur make all (juste une tripatouillé de warning concernant la version). Pour le make install, il ne trouve pas des fichiers python (pyrcc5), mais cela à l'air pour le GUI, et il poursuit bravement. Il y a des texhash qui sont ignorés. Finalement, j'ai bien un fichier asy dans le répertoire ~/asy/bin, mais non exécutable. À la commande asy -version dans ce répertoire, j'ai un asy n'est pas encore installé.

J'aimerais bien disposer d'une version récente, car j'ai plein de soucis avec asymptote (problème avec les figures en 3D, et avec la transparence, il passe systématiquement par gs, le bougre).

Quelqu'un sait ce qui ne va pas ?
Ubuntu 16.04 à jour.
A line is a point that went for a walk. Paul Klee.
Par solidarité, pas de MP.
bibi6
Utilisateur éprouvé
Utilisateur éprouvé
Messages : 461
Inscription : jeudi 23 novembre 2006, 20:12
Statut actuel : Enseignant
Localisation : 59 (Région St Amand les Eaux)

Re: Installation d'asymptote

Message non lu par bibi6 »

Bonjour,

Sans connaître tous les détails... j'irais fouiner dans le Makefile. C'est étrange qu'il ne t'ait pas fait d'erreur, et ne t'ait pas produit l'exécutable...

Ou peut-être faut-il rendre le fichier produit comme exécutable?
OG
Modérateur spécialisé
Modérateur spécialisé
Messages : 2293
Inscription : lundi 12 mars 2007, 11:20
Localisation : Rouen

Re: Installation d'asymptote

Message non lu par OG »

Salut Olivier

Ton problème est bizarre et peu courant !
Que donne ls -l asy sur ton répertoire perso/bin
et ls -l asy sur ton répertoire de compilation d'asymptote
?
et ./asy dans ton répertoire de compilation ?

O.G.
rebouxo
Modérateur honoraire
Modérateur honoraire
Messages : 6962
Inscription : mercredi 15 février 2006, 13:18
Localisation : le havre
Contact :

Re: Installation d'asymptote

Message non lu par rebouxo »

OG a écrit :Salut Olivier

Ton problème est bizarre et peu courant !
Que donne ls -l asy sur ton répertoire perso/bin
et ls -l asy sur ton répertoire de compilation d'asymptote
?
et ./asy dans ton répertoire de compilation ?

O.G.
Salut Olivier

Je réessayerais de réinstaller ce WE, j'ai tout effacé, pour refaire une installe de l'asymptote de Texlive.

Olivier
A line is a point that went for a walk. Paul Klee.
Par solidarité, pas de MP.
rebouxo
Modérateur honoraire
Modérateur honoraire
Messages : 6962
Inscription : mercredi 15 février 2006, 13:18
Localisation : le havre
Contact :

Re: Installation d'asymptote

Message non lu par rebouxo »

Bon quelques semaines plus tard. J'ai réussi à installer asymptote 2.47. Je l'ai installé dans ~/asympote, sous ubuntu 16.04.

Mais le programme suivant plante.

Code : Tout sélectionner

    import graph3 ; 
    import math ; 
    import geometry ;
    import three ;
    import solids ;
    usepackage("calrsfs") ;  
    import interpolate ;
    unitsize(1cm,1cm) ; 


currentprojection=orthographic(
camera=(-76.4677529054524,-74.3453310068684,32.4093212156294),
up=(0.00902912397708471,0.00539252162381016,0.0336737252227827),
target=(5.6843418860808e-14,-1.4210854715202e-14,-7.46069872548105e-14),
zoom=0.746215396636627);

triple pA = (1.5,0,0) ;
triple pB = (-1,3,0)  ;
triple pC = (-4,3,0)  ;
triple pD = (-2,-3,0) ;
triple pS = (0,2,7)   ;

label("$A$",pA,S) ;
label("$B$",pB,S) ;
label("$C$",pC,S) ;
label("$D$",pD,S) ;
label("$S$",pS,N) ;

path3[] aretes = {pA--pB--pC--pD--cycle,
		 pS--pA--pB--cycle,
		 pS--pB--pC--cycle,
		 pS--pC--pD--cycle,
		 pS--pD--pA--cycle} ;

surface pyra = surface(aretes) ;

draw(aretes,red+linewidth(1bp)) ;
draw(pyra,blue+opacity(0.5)) ;
Et voilà le log de asy -vv espace_014.asy

Code : Tout sélectionner

 asy -vv espace_014.asy
Using configuration directory /home/olivier/.asy
Loading config.asy from /home/olivier/.asy/config.asy
Using history /home/olivier/.asy/history
Welcome to Asymptote version 2.47
cd /home/olivier/Documents/Doctex/Ecole/CdT/Seconde/Semaine_12
Processing espace_014
Loading plain from /home/olivier/asymptote/share/asymptote/plain.asy
Including plain_constants from /home/olivier/asymptote/share/asymptote/plain_constants.asy
Loading version from /home/olivier/asymptote/share/asymptote/version.asy
Including plain_strings from /home/olivier/asymptote/share/asymptote/plain_strings.asy
Including plain_pens from /home/olivier/asymptote/share/asymptote/plain_pens.asy
Including plain_paths from /home/olivier/asymptote/share/asymptote/plain_paths.asy
Including plain_filldraw from /home/olivier/asymptote/share/asymptote/plain_filldraw.asy
Including plain_margins from /home/olivier/asymptote/share/asymptote/plain_margins.asy
Including plain_picture from /home/olivier/asymptote/share/asymptote/plain_picture.asy
Loading plain_scaling from /home/olivier/asymptote/share/asymptote/plain_scaling.asy
Loading simplex from /home/olivier/asymptote/share/asymptote/simplex.asy
Loading plain_bounds from /home/olivier/asymptote/share/asymptote/plain_bounds.asy
Including plain_scaling from /home/olivier/asymptote/share/asymptote/plain_scaling.asy
Including plain_prethree from /home/olivier/asymptote/share/asymptote/plain_prethree.asy
Including plain_Label from /home/olivier/asymptote/share/asymptote/plain_Label.asy
Including plain_shipout from /home/olivier/asymptote/share/asymptote/plain_shipout.asy
Including plain_arcs from /home/olivier/asymptote/share/asymptote/plain_arcs.asy
Including plain_boxes from /home/olivier/asymptote/share/asymptote/plain_boxes.asy
Including plain_markers from /home/olivier/asymptote/share/asymptote/plain_markers.asy
Including plain_arrows from /home/olivier/asymptote/share/asymptote/plain_arrows.asy
Including plain_debugger from /home/olivier/asymptote/share/asymptote/plain_debugger.asy
Loading espace_014.asy from espace_014.asy
Loading graph3 from /home/olivier/asymptote/share/asymptote/graph3.asy
Loading math from /home/olivier/asymptote/share/asymptote/math.asy
Loading graph from /home/olivier/asymptote/share/asymptote/graph.asy
Loading graph_splinetype from /home/olivier/asymptote/share/asymptote/graph_splinetype.asy
Loading graph_settings from /home/olivier/asymptote/share/asymptote/graph_settings.asy
Loading three from /home/olivier/asymptote/share/asymptote/three.asy
Loading embed from /home/olivier/asymptote/share/asymptote/embed.asy
Including three_light from /home/olivier/asymptote/share/asymptote/three_light.asy
Including three_surface from /home/olivier/asymptote/share/asymptote/three_surface.asy
Loading bezulate from /home/olivier/asymptote/share/asymptote/bezulate.asy
Loading interpolate from /home/olivier/asymptote/share/asymptote/interpolate.asy
Including three_margins from /home/olivier/asymptote/share/asymptote/three_margins.asy
Including three_tube from /home/olivier/asymptote/share/asymptote/three_tube.asy
Including three_arrows from /home/olivier/asymptote/share/asymptote/three_arrows.asy
Loading geometry from /home/olivier/asymptote/share/asymptote/geometry.asy
Loading markers from /home/olivier/asymptote/share/asymptote/markers.asy
Loading solids from /home/olivier/asymptote/share/asymptote/solids.asy
latex \scrollmode
latex -output-format=dvi \nonstopmode\input espace_014_.tex
This is pdfTeX, Version 3.14159265-2.6-1.40.19 (TeX Live 2018) (preloaded format=latex)
 restricted \write18 enabled.
entering extended mode
LaTeX2e <2018-04-01> patch level 5

(./espace_014_.tex
(/usr/local/texlive/2018/texmf-dist/tex/latex/base/article.cls
Document Class: article 2014/09/29 v1.4h Standard LaTeX document class
(/usr/local/texlive/2018/texmf-dist/tex/latex/base/size12.clo))
(/usr/local/texlive/2018/texmf-dist/tex/generic/oberdiek/ifluatex.sty)
(/usr/local/texlive/2018/texmf-dist/tex/latex/graphics/graphicx.sty
(/usr/local/texlive/2018/texmf-dist/tex/latex/graphics/keyval.sty)
(/usr/local/texlive/2018/texmf-dist/tex/latex/graphics/graphics.sty
(/usr/local/texlive/2018/texmf-dist/tex/latex/graphics/trig.sty)
(/usr/local/texlive/2018/texmf-dist/tex/latex/graphics-cfg/graphics.cfg)
(/usr/local/texlive/2018/texmf-dist/tex/latex/graphics-def/dvips.def)))
(/usr/local/texlive/2018/texmf-dist/tex/latex/calrsfs/calrsfs.sty)
No file espace_014_.aux.
(/usr/local/texlive/2018/texmf-dist/tex/latex/calrsfs/OMSrsfs.fd) [1] [2]
[3] [4] [5] (./espace_014_.aux) )
Output written on espace_014_.dvi (5 pages, 3772 bytes).
Transcript written on espace_014_.log.
dvips -R -Pdownload35 -D600 -q -oespace_014_.ps espace_014_.dvi
gs -q -dBATCH -P -dSAFER -sDEVICE=eps2write -sOutputFile=/dev/null espace_014_.ps
Exporting espace_014 as 708x1000 image using tiles of size 708x500
/home/olivier/asymptote/share/asymptote/three.asy: 2906.13: runtime: 
runtime à la fin (il n'y a rien d'autre). La 2D fonctionne bien, en même temps three.asy c'est bien pour la 3D.
Au passage je préférerais faire du pdf, mais bon, je pourrais faire sans.

Olivier
A line is a point that went for a walk. Paul Klee.
Par solidarité, pas de MP.
Répondre
  • Sujets similaires
    Réponses
    Vues
    Dernier message