How did you do the rubygems install? If it's out of the context of cygwin
then it might not know how to set the proper include/library directories.
(Although locations such as /usr/lib and /usr/include are fairly standard
and are pretty much set by default by the compiler/linker.)

Also, take a look at the gem directory for the config/make files to see what
compiler it's using.  If you have any Microsoft compilers (Visual C++ or the
C/C++ dev kit), it might be picking those up instead of what you're
expecting.

Long

On Fri, Aug 22, 2008 at 9:39 PM, Long Ouyang <[EMAIL PROTECTED]> wrote:

>
> Sorry for replying twice - I didn't have the foresight to check the
> install logs at first. I think the root of the issue is that gem
> install can't find funopen() and fopencookie() (cf.
>
> http://github.com/rtomayko/rdiscount/commit/07d325a6a494eb371c49e4264aa2db411d1d7d8a
> ).
>
> However, funopen() and fopencookie() exist in /usr/include/newlib.h
> within my Cygwin installation - I'm at a loss as to how to tell "gem
> install" to find it.
>
> On Aug 23, 12:19 am, Long Ouyang <[EMAIL PROTECTED]> wrote:
> > I'm trying to set up a fork of Insoshi on Cygwin and ran into the same
> > problem - rdiscount won't install.
> >
> > On Aug 2, 1:34 am, "Michael Hartl" <[EMAIL PROTECTED]> wrote:
> >
> > > rdiscount is a new Markdown library we just switched to, replacing
> > > (the very slow) BlueCloth.  It builds from C source, though, so I
> > > wouldn't be surprised if Windows users have some trouble.  (Catching
> > > stuff like this is why we have edge Insoshi.)  As far as the crypto
> > > library goes, I don't know.  Has anyone had these same troubles?
> >
> > > Maybe try running the installation under Cygwin and seeing how that
> goes.
> >
> > > Michael
> >
> > > On Fri, Aug 1, 2008 at 12:05 AM, tates <[EMAIL PROTECTED]> wrote:
> >
> > > > Who can help me find the problem?
> > > > Thanks a lot!
> >
> > > >>rake install
> > > > (in C:/rails/railsapp/insoshi)
> > > > rake install
> > > > These gems that this application depends on are missing:
> > > >  - rdiscount
> > > > Run "rake gems:install" to install them.
> > > > rake aborted!
> > > > uninitialized constant CreateLocalKeys::Crypto
> >
> > > > (See full trace by running task with --trace)
> >
> > > >>rake gems:install
> > > > rake gems:install
> > > > (in C:/rails/railsapp/insoshi)
> > > > gem.bat install rdiscount
> > > > ERROR:  Error installing rdiscount:
> > > >        ERROR: Failed to build gem native extension.
> >
> > > > c:/ruby/bin/ruby.exe extconf.rb install rdiscount
> > > > checking for random()... no
> > > > checking for srandom()... no
> > > > checking for funopen()... no
> > > > checking for fopencookie()... no
> > > > *** extconf.rb failed ***
> > > > Could not create Makefile due to some reason, probably lack of
> > > > necessary libraries and/or headers.  Check the mkmf.log file for more
> > > > details.  You may need configuration options.
> >
> > > > Provided configuration options:
> > > >        --with-opt-dir
> > > >        --without-opt-dir
> > > >        --with-opt-include
> > > >        --without-opt-include=${opt-dir}/include
> > > >        --with-opt-lib
> > > >        --without-opt-lib=${opt-dir}/lib
> > > >        --with-make-prog
> > > >        --srcdir=.
> > > >        --curdir
> > > >        --ruby=c:/ruby/bin/ruby
> > > >        --with-rdiscount-dir
> > > >        --without-rdiscount-dir
> > > >        --with-rdiscount-include
> > > >        --without-rdiscount-include=${rdiscount-dir}/include
> > > >        --with-rdiscount-lib
> > > >        --without-rdiscount-lib=${rdiscount-dir}/lib
> > > > extconf.rb:11: No funopen or fopencookie support available.
> > > > (RuntimeError)
> >
> > > > Gem files will remain installed in c:/ruby/lib/ruby/gems/1.8/gems/
> > > > rdiscount-1.2.6.2 for inspection.
> > > > Results logged to
> c:/ruby/lib/ruby/gems/1.8/gems/rdiscount-1.2.6.2/ext/
> > > > gem_make.out
> > > > Building native extensions.  This could take a while...
> >
> > > --
> > > Michael Hartl
> > > Insoshi social softwarehttp://insoshi.com/
> >
>


-- 
Long Nguyen
[EMAIL PROTECTED]

--~--~---------~--~----~------------~-------~--~----~
Insoshi developer site: http://dogfood.insoshi.com/
Insoshi documentation: http://docs.insoshi.com/

You received this message because you are subscribed to the Google
Groups "Insoshi" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/insoshi?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to