Recent

Author Topic: install lazarus on debian from source  (Read 5478 times)

Kees Bleijenberg

  • New Member
  • *
  • Posts: 14
install lazarus on debian from source
« on: December 24, 2011, 01:51:30 pm »
I run debian in Virtualbox. I work as root. This is what I've done:
mkdir ~/programs/lazarus
svn checkout http://svn.freepascal.org/svn/fpc/trunk
apt-get install fp-compiler
then the first problem
make  <- unknown command?
make all <- this works
a half out later I'am back at the prompt. Many warnings but no errors. But where is lazarus, how do I start it ? Not in ~/programs/lazarus If it is not there how do I know what went wrong?
Kees

Blaazen

  • Hero Member
  • *****
  • Posts: 3237
  • POKE 54296,15
    • Eye-Candy Controls
Re: install lazarus on debian from source
« Reply #1 on: December 24, 2011, 02:03:31 pm »
You downloaded and compiled freepascal compiler (FPC) only.
To download Lazarus you need:
Code: [Select]
svn co http://svn.freepascal.org/svn/lazarus/trunk lazarusFollow wiki: http://wiki.lazarus.freepascal.org/Getting_Lazarus#Getting_SVN
Lazarus 2.3.0 (rev main-2_3-2863...) FPC 3.3.1 x86_64-linux-qt Chakra, Qt 4.8.7/5.13.2, Plasma 5.17.3
Lazarus 1.8.2 r57369 FPC 3.0.4 i386-win32-win32/win64 Wine 3.21

Try Eye-Candy Controls: https://sourceforge.net/projects/eccontrols/files/

IndianaJones

  • Hero Member
  • *****
  • Posts: 509
Re: install lazarus on debian from source
« Reply #2 on: December 24, 2011, 05:41:07 pm »

You can search from the repository if you are using Debian,
Look at the fpc compiler and source files with the following command and follow the instructions as Blaazen told that.

sudo apt-cache search fpc
sudo apt-get install fp*

Kees Bleijenberg

  • New Member
  • *
  • Posts: 14
Re: install lazarus on debian from source
« Reply #3 on: December 24, 2011, 08:31:59 pm »
You downloaded and compiled freepascal compiler (FPC) only.
To download Lazarus you need:
Code: [Select]
svn co http://svn.freepascal.org/svn/lazarus/trunk lazarusFollow wiki: http://wiki.lazarus.freepascal.org/Getting_Lazarus#Getting_SVN
Of course .... ! I've installed the source as you said. While building lazarus I get the message I need at least FPC version 2.4.2. Apparently 'apt-get install fp-compiler' downloads a old version of the compiler (I have 2.4.0-2)
Kees

IndianaJones

  • Hero Member
  • *****
  • Posts: 509
Re: install lazarus on debian from source
« Reply #4 on: December 24, 2011, 08:42:28 pm »

Try Daily Snapshots link, download the deb.tar file and install the new fpc2.4.4

TurboRascal

  • Hero Member
  • *****
  • Posts: 672
  • "Good sysadmin. Bad programmer."™
Re: install lazarus on debian from source
« Reply #5 on: January 16, 2012, 05:45:00 pm »
Where did you unpack the source? Have you entered the source directory before running make? How did you specify the target installation directory to make?

Maybe some of these questions seem superfluous, but since answers to them are not obvious from your post, it would be useful to have some sort of  checklist. Maybe you find a missing step that way...

Oh and one more question, why installing in the home directory as root? That setup practically means you must be root to use Lazarus. You should either install it under your normal home directory, or systemwide under /usr/local. The last location is the easiest to insall to because it can be done in one step, as root do 'make install' in the source directory (although I usually do 'make' as normal user, and just 'make install' with root rights - the rule of minimizing root account use). When it finishes, you should have Lazarus under /usr/local/share/lazarus. If you need to install to another dir, you should change prefix.
« Last Edit: January 16, 2012, 05:52:23 pm by TurboRascal »
Regards, ArNy the Turbo Rascal
-
"The secret is to give them what they need, not what they want." - Scotty, STTNG:Relics

 

TinyPortal © 2005-2018