I've got it working now.
Thanks for all your help :).
Turns out I have to set a variable PKG_CONFIG_PATH in .bash_profile that
includes the path which has the mono.pc file in it. I don't have to edit
anything anymore and it compiles
Thanks
Ivan
On Feb 5, 2008 8:57 AM, Ivan Porto Carrero <ivan at flanders.co.nz> wrote:
> Thanks guys, I got it to build.
> I do feel slightly dirty because it's somewhat hacky. (I'm very, very new
> to OSX) but I edited the Rakefil and set the libdir specifically there
>> FRAMEWORK_DIR = '/opt/local/mono/lib/mono/2.0/' #Pathname.new(libdir) +
> 'mono' + '2.0'
>> I'm not entirely happy with this solution and it probably has something to
> do with an environment variable not being set correctly, but at least i know
> it can be done now and eventually I'll get it so that the standard rake file
> suffices.
>> I've seen that the command 'pkg-config --variable=libdir mono' doesn't
> return anything, which may be the cause :)
>> Cheers
> Ivan
>>> On Feb 5, 2008 2:39 AM, M. David Peterson <m.david at xmlhacker.com> wrote:
>> > On Sun, 03 Feb 2008 13:14:28 -0700, Ivan Porto Carrero
> > <ivan at flanders.co.nz> wrote:
> >
> > > ok .. I'll keep trying then until I get a working mono version.
> > Haven't
> > > done much testing with mono but I did run the minimal test suite
> > before
> > > installing.
> > > If I compile on windows and use the binaries there is no problem.
> >
> > Are you compiling with both --with-preview=yes and --with-moonlight=yes
> > ?
> >
> > Actually, I think they both are set to yet by default, but if you're
> > building from SVN you'll need to checkout not only the mono directory
> > but
> > olive, moon, mcs, and (possibly) gtk-sharp as well. You've already got
> > mono checked out, so if you enter the same directory that the mono
> > directory is contained in and run,
> >
> > svn co
> > svn://anonsvn.mono-project.com/source/trunk/{mcs,moon,olive,gtk-sharp}<http://project.com/source/trunk/%7Bmcs,moon,olive,gtk-sharp%7D>
> >
> > ... to then svn up mono you can then enter the mono directory and run,
> >
> > ./autogen.sh --with-preview=yes --with-moonlight=yes [additional options
> > (such as --prefix)]
> >
> > NOTE: I realize I mentioned that I believe both of these values are yes
> > by
> > default, but it doesn't hurt so it's worth adding them just in case.
> >
> > If that script finishes without erroring out then run,
> >
> > make; sudo make install
> >
> > If it does error out there's a good chance it's going to be one of
> > several
> > things,
> >
> > 1) The existing DMG-based installation is getting in the way. I would
> > move /Library/Frameworks/Mono.framework (if you don't see it there, try
> > ~/Library/Frameworks/Mono.framework) to another directory to ensure
> > you're
> > not running into a problem with the build process linking against the
> > wrong libraries.
> > 2) The generated ./configure file will have a few lines that autotools
> > will claim to be invalid syntax. If you see this problem, just open the
> > ./configure file, go to the specified line, and comment it out.
> > IMPORTANT!: Don't rerun ./autogen.sh at this point. It will write over
> > the previous generated ./configure file and cause the same error to
> > occur.
> >
> > At this stage of the game you'll then want to run,
> >
> > ./configure --with-preview=yes --with-moonlight=yes [additional options
> > (such as --prefix)]; make; sudo make install
> >
> > At this point you're system should be completely up-to-date with all of
> > the latest code that is specific to the needs of the DLR and DLR-based
> > languages. That doesn't mean it's guaranteed to compile and work, but
> > I've yet to find a situation unrelated to System.Windows.Forms that
> > didn't
> > work on OS X if it worked on Linux. It sometimes takes a bit of hacking
> > the build process, but it usually works out in the end. :D
> >
> > That said, given the IronRuby and the DLR are moving targets, there's no
> > guarantee you're not going to run into issues. But in my own
> > experience,
> > the Mono team places an extremely high importance on bugs related to the
> > Iron* projects and the DLR. Often times there's a fix checked into SVN
> > within a few hours of filing the report.
> >
> > Hope this helps!
> >
> > --
> > /M:D
> >
> > M. David Peterson
> > Co-Founder & Chief Architect, 3rd&Urban, LLC
> > Email: m.david at 3rdandUrban.com | m.david at amp.fm> > Mobile: (206) 418-9027
> > http://3rdandUrban.com | http://amp.fm |
> > http://www.oreillynet.com/pub/au/2354> > _______________________________________________
> > Ironruby-core mailing list
> > Ironruby-core at rubyforge.org> > http://rubyforge.org/mailman/listinfo/ironruby-core> >
>>-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/ironruby-core/attachments/20080205/2b8f1f06/attachment-0001.html