Install Lazarus 0.94 on Mandrake 10.1 lazarus / 1-Linux ---------------------------------------------------------------------- amiso · 2005-01-28 02:42 Install Lazarus 0.9.4 on Mandrake 10.1 Do the following steps to install the Lazarus Integrated Development Tool, with the Free Pascal Compler. I am a novice linux user. I find it so difficult to install or upgrade a software. This time I finally succeeded upgrading lazarus to the 0.94 version (3 jan 2005 version) and I hope that this sumary could be usefull for other novice users. IMPORTANT NOTICE: If you are more than 6 month experienced with linux or lazarus or if you do not use linux Mandrake version 10.1 then STOP READING NOW. SECOND IMPORTANT NOTICE: Keep in mind that this was written by someone who knows next to nothing about almost everything! If anything is wrong then I deeply apologize. The purpose of this note is to help the user that has tried everything else and is stalled. I have used the procedure on 2 computers and it worked. System: linux Mandrake 10.1 Official on a Pentium III type computer Lazarus: Version 0.94 (built: 3 january 2005) FPC: Version 1.9.6 (built: 2 january 2005) Instalation source files: File_1 = "fpc-1.0.10i386.tar" from: http://www.freepascal.org/down- linux-1386.html File_2 = "fpc-1.9.6-050102.i386-linux.tar" from: http://www.lazarus.freepascal.org then follow the links "binaries", "linux","Current Lazarus Binary RPM" File_3 = "lazarus-050103.tgz" (from the lazarus site) System modules: From the "Mandrake Control Center" you will need to install the following modules: kernel-source-2.6-2.6.8.1-12mdk  <--  not necessary libgdk-pixbuf2.0-0-devel-2.4.9-9mdk  <-- not necessary libgdk-pixbuf-xlib2-0.22.0-5mdk libgdk-pixbuf2-devel-0.220.-5mdk There 3 major steps to get to the full instalation: A - stable compiler install (V1.0.10) B - current compilet install (V1.9.6) C - IDE (Lazarus) install A -- Stable compiler install (easy) That version (1.0.10) used to be included on the Mandrake Install disk but I did not find it in the Mandrake 10.1 distribution! Use the web: 1- In user mode ("myself") type: mkdir /home/myself/freepascal/V1.0.10 2- copy File_1 to /home/myself/freepascal/V1.0.10 3- type: tar -xvf File_1 (of course you type the actual file name given above) 4- type: cd fpc 5- go to the superuser mode (type: "su" then your password) 6- type: sh install.sh 7- you want to install it in the /usr/local folder then just press: return 8- anwser "Y" to all the 11 questions, and answer "return" to the last question. At this point you shoud have the first "stable" compiler installed! It will be used to compile the "current" compiler: The command: "fpc" shows a help message that gives the 1.0.10 version number. Check that now you have a folder: /usr/local/lib/fpc/1.0.10/ B - Current compiler install This is similar to stable version: 1- In user mode ("myself") type: mkdir /home/myself/freepascal/V1.9.6 2- move File_2 to: /home/myself/freepascal/V1.9.6 3- type: tar -xvf File_2 (actual name given above) 4- type: cd fpc 5- go to the superuser mode ("su" then your password) 6- type: sh install.shl (takes about 10 minutes) 7- anwser "Y" to all the 11 questions, and answer "return" to the last question. At this point check that you have a directory: /usr/local/lib/fpc/1.9.6/units/i386-linux/ filled with the libraries. There are all sort of folders in there. Now check in the file fpc.cfg for the following: -Fu/usr/local/lib/fpc/1.9.6/units/$fpctarget -Fu/usr/local/lib/fpc/1.9.6/units/$fpctarget/* -Fu/usr/local/lib/fpc/1.9.6/units/$fpctarget/rlt Note that you see the word: $fpctarget NOT $target. Note that you see: 1.9.6 NOT 1.0.10. If the lines do not match then edit and change the file. Use any editor you like of course. In vi you type: 7a - "I" to go to the "insert mode" 7b - type in your lines as shown above 7c - "ESCAPE" button go back to the command mode 7d - ":wq" will save and exit. (":q!" exit without save!) The last "trick" is to check (change) is the symnbolic link "ppc386": 8a- cd /usr/local/bin 8b- ls -al Now you have to make sure that the link "ppc386" points to the good compiler: /usr/local/lib/fpc/1.9.6/ppc386 Skip to step 9. Otherwise: 8c- rm ppc386 (then "y") 8d- type: ln -s /usr/local/lib/fpc/1.9.6/ppc386 9-  type: exit Come back to the user mode 10- type: fpc Wonderfull! Now you see that you have the Version 1.9.6 compiler. C - Install Lazarus (easy) That can be done in the USER mode: 11- type: cd ~ 12- Copy File_3 to: /home/myself/ 13- cd ~ 14- tar -xvzf File_3 this will create the lazarus folder 15- cd lazarus 16- make clean all (takes about 3 minutes) 17- type: ./lazarus This should put you up and runing in the IDE. When you boot the first time, here is an error message about the "Free pascal Source Directory". Click: "ignore", then go to "Enviromnment/Environment Options" and set the FPC source directory to /usr/local/share/src/fpc-1.9.6/. 18-Create a simple applicaton using one button and a label and check that it will compile and run it. 19- create an icon on your desktop that executes the application 'lazarus' in the /home/myself/lazarus/ directory Now, I give a list of things that I was not sure about. This can give an indication where the procedure above is weak. 1 - I do not know how to install the .rpm files. for that reason I always used the .tar files. Most people commented to me that the RPM file is a prefered method. 2 - There is a stable version 1.0.11 but there was no .tar file available at the time this was written. The version 1.10 is still available and works, so I used it. 3 - Beware of the files ppc386 ppc396.cfg fpc.cfg fpc. After a while, you see them everywhere. Some of them are hidden sometimes! Only /etc/fpc.cfg and /user/lib/ppc386 are usefull. I hope that this was not too pedantic and could be usefull to someone. Sincerely Alain Michaud Ottawa Canada rubidium 27 january 2005 ---------------------------------------------------------------------- matthijs · 2005-01-28 06:28 Whoot! Good work! Although I cannot test it, I'm running Fedora, I think this is a great thing! Maybe it is usefull if instructions like these are available for other distro's as well! One question: Why did you use vi? There must be something like nedit on Mandrake as well? I'll point Mandrake users to this post ---------------------------------------------------------------------- Lightning · 2005-01-28 18:56 Why not try the latest installer, i seem to be verry lucky, i always got it installed quite easy (MDK10, RH9). I had no problems, i installed the developement packages for my distros and then i installed the .rpm packs from the console. ---------------------------------------------------------------------- aleclerc · 2005-02-04 23:09 Quote from: "amiso"1 - I do not know how to install the .rpm files. for that reason I always used the .tar files. Most people commented to me that the RPM file is a prefered method. Hi amiso (should I say Alain), I have Mandrake Linux 10.1 and KDE. Installing a RPM is simple as double-clicking on it. Here is the command in shell: Code: [Select]$ rpm -ivh [rpm_file]               #this is the short form $ rpm --install --verbose --hash    #this is the long form $ rpm --help                        #more help on rpm $ man rpm                           #manual on rpm Usually you need to be root to install a RMP, so either 'su' root and execute the command or do it all in one!: Code: [Select]$ su -c'rpm -ivh [rpm_file]'        #will go root and execute the command $ su --help                         #more help on su $ man su                            #manual on su I'm sorry if you knew all this, but if you really are a biginer, this will help you. 've been there two years ago. Best regards