[Tuto] Installation d'asymptote SVN sur (X)ubuntu 12.10

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.
chellier
Modérateur honoraire
Modérateur honoraire
Messages : 355
Inscription : samedi 25 juillet 2009, 12:25
Localisation : Le Creusot
Contact :

[Tuto] Installation d'asymptote SVN sur (X)ubuntu 12.10

Message non lu par chellier »

1/ Désinstaller toute autre version d'asymptote :
  • par le gestionnaire de paquets si l'installation a été faite par celui-ci ;
  • si asymptote a été installé en même temps que TeXlive, par le script "install-tl" par exemple, il faut le supprimer à l'aide de tlmgr :

    Code : Tout sélectionner

    sudo tlmgr remove --force asymptote
    
2/ Installer les paquets nécessaires :

Code : Tout sélectionner

sudo apt-get install build-essential subversion flex texinfo autoconf zlib1g-dev bison freeglut3-dev cdbs debhelper libfftw3-dev libreadline6-dev libncurses5-dev libgsl0-dev libsigsegv-dev imagemagick libosmesa6-dev
3/ Récupérer les sources :

Code : Tout sélectionner

mkdir asymptote_svn
cd asymptote_svn
svn co http://asymptote.svn.sourceforge.net/svnroot/asymptote/trunk/asymptote
4/ Compiler :

Code : Tout sélectionner

cd asymptote
./autogen.sh
wget http://www.hpl.hp.com/personal/Hans_Boehm/gc/gc_source/gc-7.2d.tar.gz
./configure
make all
sudo make install
L'installation est terminée (le make all et le make install devraient prendre un certain temps...)
Dans un terminal, taper asy, vous devriez voir la version d'asymptote installée (q pour quitter).

5/ Pour les mises à jour :

Code : Tout sélectionner

cd asymptote_svn/asymptote
svn update
sudo make install
À noter : les versions récentes d'asymptote, à fortiori la version svn, demandent une version très récente de TeXlive (pour la 3D), la version des dépôts n'est pas suffisante au moment ou j'écris ces lignes. Pour une installation de TeXlive autre que par les dépôts, voir ce document.

En espérant que ce sera utile à quelqu'un :wink:

Christophe
chellier
Modérateur honoraire
Modérateur honoraire
Messages : 355
Inscription : samedi 25 juillet 2009, 12:25
Localisation : Le Creusot
Contact :

Re: Installation d'asymptote SVN sur (X)ubuntu12.10

Message non lu par chellier »

Le résultat du ./configure :

Code : Tout sélectionner

checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking whether byte ordering is bigendian... no
checking for kpsewhich... true
checking for kpsewhich... (cached) true
checking for texi2dvi... texi2dvi
configure: Using /usr/local/texlive/2012/../texmf-local/tex/latex/asymptote for LaTeX style file
configure: Using /usr/local/texlive/2012/../texmf-local/tex/context/third/asymptote for ConTeXT style file
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for flex... flex
checking lex output file root... lex.yy
checking lex library... none needed
checking whether yytext is a pointer... no
checking whether we are using the GNU C++ compiler... (cached) yes
checking whether g++ accepts -g... (cached) yes
checking for a BSD-compatible install... /usr/bin/install -c
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking whether make sets $(MAKE)... yes
checking for bison... bison -y
checking how to run the C++ preprocessor... g++ -E
checking tr1/unordered_map usability... yes
checking tr1/unordered_map presence... yes
checking for tr1/unordered_map... yes
checking for gc-7.2d.tar.gz... yes
configure: enabling local Boehm Garbage Collector gc-7.2d
checking for getopt_long_only... yes
checking for setupterm in -lncurses... yes
checking for sqrt in -lm... yes
checking for deflate in -lz... yes
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking for the pthreads library -lpthreads... no
checking whether pthreads work without any flags... no
checking whether pthreads work with -Kthread... no
checking whether pthreads work with -kthread... no
checking for the pthreads library -llthread... no
checking whether pthreads work with -pthread... yes
checking for joinable pthread attribute... PTHREAD_CREATE_JOINABLE
checking if more special flags are required for pthreads... no
checking for PTHREAD_PRIO_INHERIT... no
checking for stackoverflow_install_handler in -lsigsegv... yes
checking for sched_yield in -lrt... yes
checking for history_list in -lreadline... yes
checking for sys/wait.h that is POSIX.1 compatible... yes
checking fenv.h usability... yes
checking fenv.h presence... yes
checking for fenv.h... yes
checking stddef.h usability... yes
checking stddef.h presence... yes
checking for stddef.h... yes
checking libintl.h usability... yes
checking libintl.h presence... yes
checking for libintl.h... yes
checking ncurses/curses.h usability... no
checking ncurses/curses.h presence... no
checking for ncurses/curses.h... no
checking ncurses.h usability... yes
checking ncurses.h presence... yes
checking for ncurses.h... yes
checking fpu_control.h usability... yes
checking fpu_control.h presence... yes
checking for fpu_control.h... yes
checking for library containing xdrstdio_create... none required
checking gsl/gsl_sf.h usability... yes
checking gsl/gsl_sf.h presence... yes
checking for gsl/gsl_sf.h... yes
checking for gsl_sf_debye_6 in -lgsl... yes
checking fftw3.h usability... yes
checking fftw3.h presence... yes
checking for fftw3.h... yes
checking for fftw_execute in -lfftw3... yes
checking for glDepthMask in -lGL... yes
checking for gluNewNurbsRenderer in -lGLU... yes
checking for glutMainLoop in -lglut... yes
checking for OSMesaCreateContext in -lOSMesa... yes
checking for _glapi_get_context in -lglapi... no
configure: *** Could not find libglapi: will compile without offscreen rendering support ***
checking for pid_t... yes
checking for size_t... yes
checking for ptrdiff_t... yes
checking for long long... yes
checking for long... yes
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking return type of signal handlers... void
checking vfork.h usability... no
checking vfork.h presence... no
checking for vfork.h... no
checking for fork... yes
checking for vfork... yes
checking for working fork... yes
checking for working vfork... (cached) yes
checking for dup2... yes
checking for floor... yes
checking for memset... yes
checking for pow... yes
checking for sqrt... yes
checking for strchr... yes
checking for tgamma... yes
checking for memrchr... yes
checking for strftime... yes
checking for strptime... yes
checking for error_at_line... yes
checking for _LARGEFILE_SOURCE value needed for large files... no
configure: creating ./config.status
config.status: creating Makefile
config.status: creating doc/Makefile
config.status: creating doc/png/Makefile
config.status: creating config.h
checking for gc-7.2d.tar.gz... (cached) yes
Il reste un soucis avec libglapi (pourtant installé...), mais je n'ai pas (encore :roll: ) rencontré de problème dans l'utilisation d'asymptote. Si quelqu'un trouve une solution, je suis preneur :D

Christophe
OG
Modérateur spécialisé
Modérateur spécialisé
Messages : 2293
Inscription : lundi 12 mars 2007, 11:20
Localisation : Rouen

Re: [TUTORIEL]Installation d'asymptote SVN sur (X)ubuntu12.1

Message non lu par OG »

Bonjour


J'avais remarqué la même chose mais je n'ai pas poursuivi les investigations et ne voulant pas installer une librairie hors d'un paquet debian.
Les librairies sont bien présentes, c'est donc un bug ou une option de compilation manquante.

Entre les trois lignes du dessus et maintenant j'ai cherché.
J'ai passé un peu de temps avec le message http://sourceforge.net/projects/asympto ... ic/5440823
pour récupérer le fichier cpp dont la compilation échoue. Visiblement -lglapi n'est pris en compte par le g++ (la librairie n'existe pas) mais -l:libglapi.0 (le vrai nom) oui. Une histoire de ldconfig donc.
En modifiant le configure c'est ok, mais ce n'est pas une solution. Pour info je suis sous Siduction (Sid). L'absence de glapi ne gênera pas trop, c'est pour le support du "offscreen-rendering"...

O.G.
Répondre
  • Sujets similaires
    Réponses
    Vues
    Dernier message