Recent

Author Topic: Lazarus on OSX  (Read 23052 times)

Sebyno

  • Guest
Lazarus on OSX
« on: February 20, 2006, 03:43:35 pm »
Hi to all,
only a litle and may be stupid question....

I downloaded
fpc-2.0.2-macosx.dmg (installed)
fpcsrc-2.0.2-macosx.dmg (installed)
lazarus-0.9.12-macosx.dmg (installed)

and now?
I can't see any icon under programs and also under tools or dev.

Thank's in advance for help

Sebyno

  • Guest
Solved
« Reply #1 on: February 21, 2006, 03:47:19 pm »
Following this step I solved


Quote

Gianni,

Lazarus appears to be getting more stable with each passing day. If you can identify the precise conditions that cause the IDE to crash or display an access violation, please log it as a bug.

As a benefit other potential Mac users of Lazarus, here's a quick and dirty review of the basic steps to getting the current Lazarus snapshot installed and running under OS X:

(1) For now, ignore out-of-date installation instructions elsewhere.

(2) Make sure X11 is installed. X11 is optionally installed with OS X and comes on OS X CD's or can be downloaded from Apple.

(3) Download and install the correct version of fink for your version of OS X and let it download and install the additional 29 GTK and related packages needed. Note that instructions elsewhere contained a typo for the fink command. Here's the command that I used (all on one line):

sudo fink install gdk-pixbuf gtk+ gtk+-data gtk+-shlibs gtk-doc-1.2-13 gtkglarea gtk-engines

URL: http://fink.sourceforge.net/download

(4) Download and install all 3 .dmg files from the Lazarus snapshot page. I doubt if the order of installation matters, but this is the order I installed them:
- fpc .dmg
- fpcsrc .dmg
- lazarus .dmg

URL: http://www.ca.freepascal.org/Lazarus/

(5) Open X terminal window.

(6) In the X terminal, type:

sh
PATH=$PATH:/usr/local/bin
tcsh
cd /usr/local/share/lazarus
./lazarus

Typing "open lazarus" also works instead of "./lazarus".

(7) I usually "uninstall" everything manually before installing a new snapshot. I don't know that this is really necessary, but it makes me feel better:
- Delete /usr/local/share/lazarus folder
- Delete /usr/local/share/fpcsrc folder
- Delete /usr/local/share/doc/FPC folder
- Delete /usr/local/share/examples/FPC folder
- Delete /usr/local/lib/fpc folder
- Delete FPC programs from usr/local/bin folder. Note that there might be files from other programs in this folder, so be careful about what you delete.
- Empty trash.

Please point out any errors or steps that I might have overlooked.

Thanks.

-Phil




Thanks to Phil H.

mattias

  • Administrator
  • Full Member
  • *
  • Posts: 184
    • http://www.lazarus.freepascal.org
RE: Solved
« Reply #2 on: February 21, 2006, 04:59:26 pm »
The gtkglarea and gtk-engines are not needed and can make problems.

Please update the wiki with whatever you think is missing:
http://wiki.lazarus.freepascal.org/index.php/Installing_Lazarus_on_MacOS_X

guestghost

  • Guest
starting lazarus
« Reply #3 on: March 01, 2006, 05:15:20 am »
trying to start lazarus with ./startlazarus or ./lazarus gives me
aclocal         doc             fpcsrc          locale
bakefile        examples        lazarus
dialup-ras26-221:/usr/local/share beavis$ cd lazarus
dialup-ras26-221:/usr/local/share/lazarus beavis$ ls
COPYING                 designer                lazarus
COPYING.GPL             doceditor               lcl
COPYING.LGPL            docs                    localize.bat
COPYING.modifiedLGPL    examples                localize.sh
Makefile                ide                     packager
Makefile.fpc            ideintf                 startlazarus
README                  images                  tools
components              install                 units
debugger                languages
dialup-ras26-221:/usr/local/share/lazarus beavis$ ./lazarus

GLib-ERROR **: could not allocate -1 bytes
aborting...
Abort trap
dialup-ras26-221:/usr/local/share/lazarus beavis$ ./startlazarus

GLib-ERROR **: could not allocate -1 bytes
aborting...
Abort trap
dialup-ras26-221:/usr/local/share/lazarus beavis$


OK whats up????
I've installed all of the gtk and crap (sorry this is why i left Linux and switched to MacOsX.)!

Anonymous

  • Guest
Re: starting lazarus
« Reply #4 on: March 01, 2006, 05:24:16 am »
Quote from: "guestghost"
trying to start lazarus with ./startlazarus or ./lazarus gives me
aclocal         doc             fpcsrc          locale
bakefile        examples        lazarus
dialup-ras26-221:/usr/local/share beavis$ cd lazarus
dialup-ras26-221:/usr/local/share/lazarus beavis$ ls
COPYING                 designer                lazarus
COPYING.GPL             doceditor               lcl
COPYING.LGPL            docs                    localize.bat
COPYING.modifiedLGPL    examples                localize.sh
Makefile                ide                     packager
Makefile.fpc            ideintf                 startlazarus
README                  images                  tools
components              install                 units
debugger                languages
dialup-ras26-221:/usr/local/share/lazarus beavis$ ./lazarus

GLib-ERROR **: could not allocate -1 bytes
aborting...
Abort trap
dialup-ras26-221:/usr/local/share/lazarus beavis$ ./startlazarus

GLib-ERROR **: could not allocate -1 bytes
aborting...
Abort trap
dialup-ras26-221:/usr/local/share/lazarus beavis$


OK whats up????
I've installed all of the gtk and crap (sorry this is why i left Linux and switched to MacOsX.)!



I llike Pascal after dealing with Java (gee, I wonder) and I would like to get this working. But all this work to get this (Lazarus) working makes Java look a lot better!! C'mon, this should be a no brainer at a .9 level!!
(Sorry for the "negative" post, you guys kick ass to get Pascal to a "Working" Level!!)

Marc

  • Administrator
  • Hero Member
  • *
  • Posts: 2583
RE: Re: starting lazarus
« Reply #5 on: March 01, 2006, 10:47:13 am »
Lazarus on OSX uses X for the moment. Did oyu start the X server ?
//--
{$I stdsig.inc}
//-I still can't read someones mind
//-Bugs reported here will be forgotten. Use the bug tracker

Anonymous

  • Guest
RE: Re: starting lazarus
« Reply #6 on: March 02, 2006, 03:38:47 am »
Quote from: "Marc"
Lazarus on OSX uses X for the moment. Did oyu start the X server ?
yes, this was copied from the xterm window. Is there a path that might be hidden when using X11 on the Mac that I'm forgetting about? I think I've had that problem before. BTW, sorry for this "I've installed all of the gtk and crap (sorry this is why i left Linux and switched to MacOsX.)!" Other frustrations in life crept into that post.
Oh, has the lazarus wiki been down? I can't seem to access it. (haven't tried it yet today though)

Marc

  • Administrator
  • Hero Member
  • *
  • Posts: 2583
RE: Re: starting lazarus
« Reply #7 on: March 02, 2006, 02:31:52 pm »
I tried to test it,but it seems that I still have a fpc 2.0.1 installed. I need to upgrade, will try later
//--
{$I stdsig.inc}
//-I still can't read someones mind
//-Bugs reported here will be forgotten. Use the bug tracker

Anonymous

  • Guest
RE: Re: starting lazarus
« Reply #8 on: March 02, 2006, 10:29:55 pm »
Quote from: "Marc"
I tried to test it,but it seems that I still have a fpc 2.0.1 installed. I need to upgrade, will try later
Hmmm. bug perhaps in 2.0.2? (OMG, a bug in a complicated piece of software!? Say it isn't so!!:lol:)   I will try to find 2.0.1 and see if it solves the problem.
Thanks, Marc!

Phil

  • Hero Member
  • *****
  • Posts: 2737
Re: RE: Re: starting lazarus
« Reply #9 on: March 02, 2006, 11:39:13 pm »
Quote from: "Anonymous"
I will try to find 2.0.1 and see if it solves the problem.


Why don't you try one of the 0.9.13/2.1.1 snapshots instead? I've used several recent snapshots on my Mac (OS X 10.3.9) without any problems.

http://michael-ep3.physik.uni-halle.de/Lazarus/

-Phil

Anonymous

  • Guest
RE: Re: RE: Re: starting lazarus
« Reply #10 on: March 03, 2006, 12:56:42 am »
Quote from: "Phil"
Quote from: "Anonymous"
I will try to find 2.0.1 and see if it solves the problem.


Why donThanks Phil, I've been trying to get to the sources off of the main page (which redirects to wiki.lazarus.freepascal.org) and I get a page load error. I will grab the snapshots tomorrow from college (college has T3, I have Dial-up 4.0kps if i'm lucky!) and give it a try.

Anonymous

  • Guest
RE: Re: RE: Re: starting lazarus
« Reply #11 on: March 03, 2006, 01:03:47 am »
Quote from: "Phil"
Why don't you try one of the 0.9.13/2.1.1 snapshots instead? I've used several recent snapshots on my Mac (OS X 10.3.9) without any problems.




Thanks Phil, I've been trying to get to the sources off of the main page (which redirects to wiki.lazarus.freepascal.org) and I get a page load error. I will grab the snapshots tomorrow from college (college has T3, I have Dial-up 4.0kps if i'm lucky!) and give it a try.

Oh if someone wants to know what error i'm getting on the "getting sources" link:
Failed to Connect
The connection was refused when attempting to contact wiki.lazarus.freepascal.org.
Though the site seems valid, the browser was unable to establish a connection.

i'm using camino 1.0.

Marc

  • Administrator
  • Hero Member
  • *
  • Posts: 2583
Re: RE: Re: starting lazarus
« Reply #12 on: March 03, 2006, 11:31:23 am »
Quote from: "Anonymous"
Quote from: "Marc"
I tried to test it,but it seems that I still have a fpc 2.0.1 installed. I need to upgrade, will try later
Hmmm. bug perhaps in 2.0.2? (OMG, a bug in a complicated piece of software!? Say it isn't so!!:lol:)   I will try to find 2.0.1 and see if it solves the problem.
Thanks, Marc!


I tried it with FPC 2.0.2 and Laz rev 8860 and all works ok. (mac mini, uptodate osx 10.4)

Quote

Oh if someone wants to know what error i'm getting on the "getting sources" link:
Failed to Connect
The connection was refused when attempting to contact wiki.lazarus.freepascal.org.
Though the site seems valid, the browser was unable to establish a connection.


The main FPC download server suffered from a DOS attack and was brought down in the beginning of the week and is now up again. This server hosts also our wiki.
//--
{$I stdsig.inc}
//-I still can't read someones mind
//-Bugs reported here will be forgotten. Use the bug tracker

Anonymous

  • Guest
Lazarus on OSX
« Reply #13 on: March 04, 2006, 05:41:46 am »
AAAAAA!!!!! STILL trying to start lazarus! I even dwnld the latest snapshots of all 3 files and nothing, tried to compile lazarus from source (not the .dmg file), nothing. Here is my xterm (compliation under X11 even!) with my env settings and error message:

ButtWipe:~ beavis$ env
MANPATH=/usr/man:/usr/X11R6/man
TERM=xterm
SHELL=/bin/bash
WINDOWID=4194318
USER=beavis
__CF_USER_TEXT_ENCODING=0x1F5:0:0
PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/X11R6/bin:/usr/local:/usr/local/bin:/usr/local/share:/usr/local/share/lazarus:/sw/lib
PWD=/Users/beavis
HOME=/Users/beavis
SHLVL=2
LOGNAME=beavis
DISPLAY=:0.0
SECURITYSESSIONID=5035e0
_=/usr/bin/env
ButtWipe:~ beavis$ startlazarus

GLib-ERROR **: could not allocate -1 bytes
aborting...
Abort trap
ButtWipe:~ beavis$

/sw/lib is where the gtk/glibs are, which are of 1.2.10.

I must be overlooking something REALLY stupid!
Oh, G4 PB 1.33Ghz 1.4.5 w/new security update
gtk/glib fink'ed (installed) last night.  
fpc 2.1.1

I piped the output from the compilation to a file if ANYONE wants to see it.
Just too big to post, but will if asked.
Thanks for ALL help, guys!!!!! (if nothing else, this will be a good Tblshooting guide appendix!)

Anonymous

  • Guest
re: * (who knows) lazarus on OSX
« Reply #14 on: March 06, 2006, 04:50:43 am »
Quote from: "Anonymous"

Thanks for ALL help, guys!!!!! (if nothing else, this will be a good Tblshooting guide appendix!)


Hey, I meant that, it wasn't a flame!

Tried installing all of the fink pkgs and had trouble w/the libtiff pkg compiling, something about a conversion routine having an undeclared u_int, so compilation failed (too much dang HW to look into that one, and yes I'm older than 18!). So I have installed the gtk dmg from the mac osx gtk-sourceforge project, and svn'd the 8867 trunk but haven't compiled it yet.  
Anyone heard of problems encountered w/installing the gtk dmg and lazarus?
(dang, i might have to register if this keeps up!! :lol: )

 

TinyPortal © 2005-2018