Installation de Lazarus

Lors de l'Install Party du InstallParty20061118, une personne souhaitait avoir un IDE pour Delphy. Ce truc étant propio, on a cherché un équivalent libre : Lazarus. Seul problème, aucun paquet Ubuntu dans les dépots…. Donc, après quelques recherches Google, nous avons trouvé un script d'installation sur cette page.

Il a fallu le modifié pour sélectionner un mirror plus rapide chez sourceforge et permettre la compilation en version 64 bits. Cela donne le script suivant :

#!/bin/sh

# http://nchc.dl.sourceforge.net/
SERVER="belnet.dl.sourceforge.net"

# For 32 bits 
FPC="fpc-2.0.4.i386-linux.tar"

# 64 bits 
FPC="fpc-2.0.4.x86_64-linux.tar"



#installing required packages
sudo apt-get install build-essential
sudo apt-get install libgtk2.0-dev
sudo apt-get install libgdk-pixbuf-dev

#installing FreePascal source
cd /opt
sudo wget http://$SERVER/lazarus/fpc-src-2.0.4.source.tgz
sudo tar -xvf fpc-src-2.0.4.source.tgz
sudo mv fpc fpcsrc

#installing FreePascal
sudo mkdir fpc
cd fpc
sudo wget http://$SERVER/lazarus/$FPC
sudo tar -xvf $FPC
echo "Enter '/opt/fpc' when prompted 'Install prefix'"
sudo sh install.sh

#adding fpc path to the PATH
echo "#FPC PATH" >> ~/.bash_profile
echo "if [ -d /opt/fpc/bin ] ; then" >> ~/.bash_profile
echo PATH=/opt/fpc/bin:"${PATH}" >> ~/.bash_profile
echo "fi" >> ~/.bash_profile

#installing Lazarus
cd ../
sudo wget http://$SERVER/lazarus/lazarus-0.9.18-0.tar.gz
sudo tar -zxvf lazarus-0.9.18-0.tar.gz
PATH=/opt/fpc/bin:"${PATH}"
sudo chmod -R 777 lazarus
cd lazarus
make clean all
./lazarus

En espérant que cela puisse resservir un jour …

 
tutoriaux/lazarus.txt · Dernière modification: 2011/10/11 16:45 (modification externe)
 
Recent changes RSS feed Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki