issue77:labo_linux
Différences
Ci-dessous, les différences entre deux révisions de la page.
Prochaine révision | Révision précédente | ||
issue77:labo_linux [2013/10/01 17:08] – créée andre_domenech | issue77:labo_linux [2014/03/05 14:46] (Version actuelle) – andre_domenech | ||
---|---|---|---|
Ligne 1: | Ligne 1: | ||
+ | ===== 1 ===== | ||
+ | ** | ||
In the early eighties, I spent a great deal of time learning about the Commodore 64. Our family bought the computer for accounting, but it quickly became apparent that games were the C64’s real strength. Some of the more memorable titles included: 1942 (the midway arcade game clone), Archon, Arkanoid, Attack of the Mutant Camels, Aztec Challenge, B.C.’s Quest for Tires, The Bard’s Tale, Blue Max, Commando (based very loosely on the Arnold Schwarzenegger movie of the same name), and Dig Dug – just to name a few. Compared to today’s games, the graphics of these games sucked, but there was something enchanting about Commodore 64 games that made people like me spend way too long playing them. | In the early eighties, I spent a great deal of time learning about the Commodore 64. Our family bought the computer for accounting, but it quickly became apparent that games were the C64’s real strength. Some of the more memorable titles included: 1942 (the midway arcade game clone), Archon, Arkanoid, Attack of the Mutant Camels, Aztec Challenge, B.C.’s Quest for Tires, The Bard’s Tale, Blue Max, Commando (based very loosely on the Arnold Schwarzenegger movie of the same name), and Dig Dug – just to name a few. Compared to today’s games, the graphics of these games sucked, but there was something enchanting about Commodore 64 games that made people like me spend way too long playing them. | ||
Among role-playing style games, the Ultima series was one of the most popular. Several years ago, while browsing through Ubuntu software repositories, | Among role-playing style games, the Ultima series was one of the most popular. Several years ago, while browsing through Ubuntu software repositories, | ||
+ | ** | ||
+ | Au début des années quatre-vingt, | ||
+ | |||
+ | Parmi les jeux de rôle, la série Ultima était l'une des plus populaires. Il y a plusieurs années, en parcourant les dépôts de logiciels Ubuntu, je suis tombé sur un jeu appelé Haxima qui ressemblait beaucoup à Ultima. Haxima était basée sur un moteur de jeu appelé Nazghul. Malheureusement, | ||
+ | |||
+ | ** | ||
Originally, I intended this article for the Linux Games section, but, since it took a bit of work getting Haxima installed, I thought it might be a useful exercise to show the steps I went through to get it working. | Originally, I intended this article for the Linux Games section, but, since it took a bit of work getting Haxima installed, I thought it might be a useful exercise to show the steps I went through to get it working. | ||
Ligne 10: | Ligne 18: | ||
http:// | http:// | ||
http:// | http:// | ||
+ | ** | ||
+ | |||
+ | Au début, je destinai cet article pour la section Jeux Ubuntu, mais, puisqu' | ||
+ | Tout d' | ||
+ | |||
+ | J'ai téléchargé les rpm pour i686 d' | ||
+ | http:// | ||
+ | http:// | ||
+ | |||
+ | ===== 2 ===== | ||
+ | ** | ||
In order to install the RPMs, I first converted them to .deb files. I installed alien, a program that can convert .rpm files to .deb files: | In order to install the RPMs, I first converted them to .deb files. I installed alien, a program that can convert .rpm files to .deb files: | ||
Ligne 32: | Ligne 51: | ||
In this case, ubuntuforums user FenrirXIII provides an answer here: http:// | In this case, ubuntuforums user FenrirXIII provides an answer here: http:// | ||
+ | ** | ||
+ | Afin d' | ||
+ | |||
+ | sudo apt-get install alien | ||
+ | |||
+ | Alien utilise l' | ||
+ | |||
+ | sudo alien --to-deb nazghul-0.7.1-5.20120228gitb0a402a.fc19.i686.rpm | ||
+ | |||
+ | sudo alien --to-deb haxima-0.7.1-5.20120228gitb0a402a.fc19.i686.rpm | ||
+ | |||
+ | Maintenant nous devons installer les fichiers deb fraichement créés: | ||
+ | |||
+ | sudo dpkg -i nazghul_0.7.1-6.20120228_i386.deb | ||
+ | |||
+ | sudo dpkg -i haxima_0.7.1-6.20120228_i386.deb | ||
+ | |||
+ | Tout c'est bien passé? Nous devrions pouvoir taper haxima et commencer à jouer, mais si vous exécutez haxima sous Ubuntu 13.04 vous obtenez l' | ||
+ | |||
+ | / | ||
+ | |||
+ | Dans ce cas, FenrirXIII sur les ubuntuforums propose une solution ici: http:// | ||
+ | |||
+ | ** | ||
FenrirXIII’s first step suggests downloading the libpng15 library from sourceforge: | FenrirXIII’s first step suggests downloading the libpng15 library from sourceforge: | ||
Ligne 56: | Ligne 99: | ||
apt-cache search zlib | grep dev | apt-cache search zlib | grep dev | ||
+ | ** | ||
+ | La première étape de FenrirXIII vous invite à télécharger la bibliothèque libpng15 de sourceforge : | ||
+ | http:// | ||
+ | |||
+ | J'ai téléchargé le fichier 1.5.7.tar.gz et l'ai dépaqueté: | ||
+ | |||
+ | tar -zxvf libpng-1.5.17.tar.gz | ||
+ | |||
+ | Avant de compiler quoi que ce soit, nous avons besoin d'un compilateur et de quelques éléments essentiels : | ||
+ | |||
+ | sudo apt-get install build-essential | ||
+ | |||
+ | Une fois le compilateur installé, l' | ||
+ | |||
+ | cd ~/ | ||
+ | |||
+ | ./configure --prefix=/ | ||
+ | |||
+ | Oups, une erreur : | ||
+ | |||
+ | configure: error: zlib not installed | ||
+ | |||
+ | Souvent, quand il y a une erreur de compilation, | ||
+ | |||
+ | apt-cache search zlib | grep dev | ||
+ | |||
+ | ===== 3 ===== | ||
+ | ** | ||
On my system, this resulted in 25 different programs, one of which, zlib1g-dev, looked a lot like the library. | On my system, this resulted in 25 different programs, one of which, zlib1g-dev, looked a lot like the library. | ||
Ligne 74: | Ligne 145: | ||
We have to use sudo since we’re writing to places our normal account cannot write to. The first make step was making the files within our user directory. | We have to use sudo since we’re writing to places our normal account cannot write to. The first make step was making the files within our user directory. | ||
+ | ** | ||
+ | Sur mon système, le résultat a été 25 programmes différents, | ||
+ | |||
+ | sudo apt-get install zlib1g-dev | ||
+ | |||
+ | Maintenant nous ré-essayons la commande de FenrirXIII : | ||
+ | |||
+ | ./configure --prefix=/ | ||
+ | |||
+ | Cette fois-ci, la commande s'est terminée avec succès. L' | ||
+ | |||
+ | make | ||
+ | |||
+ | Normalement, | ||
+ | |||
+ | sudo make install | ||
+ | |||
+ | Il faut utiliser sudo, car nous écrivons à des endroits où notre compte normal ne peut le faire. Le premier make a construit les fichiers dans notre répertoire de l' | ||
+ | |||
+ | ===== 4 ===== | ||
+ | ** | ||
This older version of libpng is now installed, but we need to create a symbolic link to it so that when programs look for libpng15.so.15, | This older version of libpng is now installed, but we need to create a symbolic link to it so that when programs look for libpng15.so.15, | ||
Ligne 91: | Ligne 183: | ||
sudo ln -s / | sudo ln -s / | ||
+ | ** | ||
+ | L' | ||
+ | |||
+ | sudo updatedb | ||
+ | |||
+ | locate libpng | grep libpng15.so.15 | ||
+ | |||
+ | Quelques résultats s' | ||
+ | |||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | |||
+ | Celui que nous voulons est le troisième résultat. Maintenant nous pouvons terminer les étapes de FenrirXIII et placer la bibliothèque à un endroit où les programmes chercheront libpng15.so.15. | ||
+ | |||
+ | sudo ln -s / | ||
+ | |||
+ | ** | ||
Now if we run haxima it should recognize where libpng15.so.15 is installed. | Now if we run haxima it should recognize where libpng15.so.15 is installed. | ||
Ligne 105: | Ligne 216: | ||
If I get really hung up on an error, I search the web for an answer. A lot of problems can be solved by reading the README or any text files included in the archive. Happy compiling! | If I get really hung up on an error, I search the web for an answer. A lot of problems can be solved by reading the README or any text files included in the archive. Happy compiling! | ||
+ | ** | ||
+ | |||
+ | Maintenant si nous lançons haxima il devrait savoir où chercher libpng15.so.15. | ||
+ | |||
+ | haxima | ||
+ | |||
+ | Succès ! Normalement, | ||
+ | • détarer/ | ||
+ | • Lire le fichier README ou INSTALL (less README ou less INSTALL). Parfois, les fichiers sont dans un sous-répertoire appelé docs et signalent de suivre des instructions particulières. | ||
+ | • Lancer 3 choses : | ||
+ | ./configure | ||
+ | make | ||
+ | sudo make install | ||
+ | |||
+ | Si je reste vraiment bloqué par une erreur, je cherche une réponse sur le Web. Beaucoup de problèmes peuvent être résolus en lisant le fichier README ou tout fichier texte inclus dans l' | ||
+ | |||
+ |
issue77/labo_linux.1380640125.txt.gz · Dernière modification : 2013/10/01 17:08 de andre_domenech