As there is no packgage for Lazarus IDE, I failed to convert the debian one. I saw that fpc and fpcsrc packages are available for download. Does anyone has already installed Lazarus?
Thanks

Pb with Lazarus IDE (dev)
(8 posts) (2 voices)-
Posted 12 years ago #
-
Don't you need FreePascal to use Lazarus?
Posted 12 years ago # -
Yes fpc is the Free Pascal Compiler, and there are both free pascal exe and sources for Slitaz 4.
So it would be great to have Lazarus also. I will try to compile lazarus sources.Posted 12 years ago # -
Make sure you have fpc and fpc-src installed.
Then download: http://sourceforge.net/projects/lazarus/files/Lazarus%20Zip%20_%20GZip/Lazarus%201.0/lazarus-1.0-0.tar.gz/download
Extract it, right click the lazarus file and set it's permission to all execute. Then run. According to the Wiki this should work
Posted 12 years ago # -
This archive is the lazarus source to compile. For doing this we need the following :
tazpkg get-install gcc glibc-dev make automake autoconf --forced
Unfortunatly I get errors when making clean all.
Illegal parameter: setgccdir()Posted 12 years ago # -
You'll probably need gtk+-dev and gdk-pixbuf-dev too. Use slitaz-toolchain to get everything gcc needs to work.
Going on the Wiki, you only need to compile FreePascal's source and copy them to the right place (which has been done for you by SliTaz). Then you just download lazarus' archive, extract it and run ./lazarus after marking it as an executable.
The
make clean
just removes all the compiled files - it does not compile anything. I assume running ./lazarus compiles Lazarus through FreePascal's compiler the first time you run it.Posted 12 years ago # -
Thanks for your help. Yes I forgot to mention these two packages gtk+-dev and gdk-pixbuf-dev. "Making clean all" still fails when reading etc/fpc.cfg :
Hint: Start of reading config file /etc/fpc.cfg
Error: Illegal parameter: setgccdir() {
Error: Illegal parameter: GCCSPEC=(gcc -v $@ 2>&1)| head -n 1| awk '{ print $4 } '
Error: Illegal parameter: if [ -z "$GCCSPEC" ] ; then
Error: Illegal parameter: GCCSPEC=gcc -print-libgcc-file-name $@ 2>/dev/null
Error: Illegal parameter: fi
Error: Illegal parameter: GCCDIR=dirname "$GCCSPEC"
Error: Illegal parameter: }
Error: Illegal parameter: setgccdirarch() {
Error: Illegal parameter: FPCDEFINE=$1
Error: Illegal parameter: shift
Error: Illegal parameter: setgccdir $@
Error: Illegal parameter: if [ -z "$GCCDIR" ] ; then
Error: Illegal parameter: return
Error: Illegal parameter: fi
Error: Illegal parameter: GCCDIR="#ifdef $FPCDEFINE
Fatal: In options file /etc/fpc.cfg at line 29 unexpected \var{\#ENDIFs} encountered
Fatal: Compilation abortedWorking for years with Mandriva I also tried to copy/past /usr/lib/lazarus from it into Slitaz to get a valid exe. It runs but when compiling a project I still get errors from this etc/fpc.cfg...
This said, I really enjoy Slitaz I just discovered. I would like to install it in all my (old) laptops but I need Lazarus...
Posted 12 years ago # -
Personally I think you should do everything from scratch while downloading the sources from github:
http://wiki.lazarus.freepascal.org/git_mirrorsThen follow the http://wiki.lazarus.freepascal.org/Installing_Lazarus#Installing_from_source heading of "Downloading Lazarus Source Code". Just replace the subversion steps with the git ones. That way you KNOW you'll have a working and compiled version of Lazarus and FreePascal.
Posted 12 years ago #
Reply
You must log in to post.