[Mono-list] Gendarme

Sebastien Pouliot sebastien.pouliot at gmail.com
Fri Mar 23 07:48:21 EDT 2007


On Thu, 2007-03-22 at 22:30 +0100, Punk Programmer wrote:
> On 3/22/07, Sebastien Pouliot <sebastien.pouliot at gmail.com> wrote:
> > Hello Einar,
> >
> > On Thu, 2007-03-22 at 21:45 +0100, Punk Programmer wrote:
> > > I'm an ex-.NET/Windows developer who've just installed Mono 1.2 on my
> > > Mac OS X. I'd like to take a look at Gendarme, but I'm afraid my tiny
> > > brain and lack of experience conspire to hinder me. I've gotten the
> > > source from SVN, but running autogen.sh fails with the message that
> > > MONO_CECIL is an unexpected token. I realize that Gendarme uses cecil,
> > > and so I should have cecil installed. I've downloaded the dll
> > > (Mono.cecil.dll), but am still stumped as to how to inform autogen.sh
> > > of this. My naive attempt at declaring an environment variable called
> > > MONO_CECIL was predictably futile.
> > >
> > > Any help for a beginner would be greatly appreciated!
> >
> > If you got Gendarme from SVN then it was under the cecil/ so you should
> > have cecil sources too.
> >
> > Go to {your svn path}/cecil/lib and type ./configure --prefix={your
> > prefix} then proceed with Gendarme.
> >
> 
> Hi Sebastien,
> 
> I appreciate the kind assistance. Originally I had just downloaded the
> Gendarme sources, but now I have cecil as well. I followed your
> instructions, but since I have next to no experience with configure, I
> might have done something wrong - I simply chose as prefix a path
> where I might put additional Mono libraries. Is this off the mark, or
> is there a particular path I should have chosen instead? Anyway,
> configure echoed back to me that the Mono.Cecil module was configured
> with the prefix I gave it. I then tried to re-run autogen.sh in the
> gendarme directory, but with the same result as before.
> 
> Any further help would be greatly appreciated!

What's the prefix under which mono is installed ?

Use the same one for configuring cecil, then do a "make" and "make
install".

Use again the same prefix when running autogen.sh on gendarme (again a
"make" and "make install").

> Kind regards,
> Einar
-- 
Sebastien Pouliot  <sebastien at ximian.com>
Blog: http://pages.infinit.net/ctech/



More information about the Mono-list mailing list