[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

mkmf have_header function on Windows XP

Blake Miller

4/6/2007 5:38:00 PM

I'm trying to get an extension built on WinXP. It's the PL/Ruby library
for writing stored procedures for PostgreSQL.

I'm posting this because it seems like a generic enough question.

I've got Ruby 1.8.6. PostgreSQL 8.2

I'm running command:

ruby extconf.rb --with-pgsql-dir="C:\PostgreSQL\8.2\"
--with-pgsql-dir="C:\PostgreSQL\8.2\lib" --ruby="C:\ruby"

And it's complaining that it can't find a header file that I know exists
where it's looking. The error is:

checking for C:\PostgreSQL\8.2\include\server/catalog/pg_proc.h... no

I've tried all sorts of paths, and have begun digging into extconf.rb,
but no matter what the path, the have_header() function always causes
the above error.

--
Posted via http://www.ruby-....

3 Answers

Daniel Berger

4/6/2007 6:11:00 PM

0

On Apr 6, 11:37 am, Blake Miller <blake...@hotmail.com> wrote:
> I'm trying to get an extension built on WinXP. It's the PL/Ruby library
> for writing stored procedures for PostgreSQL.
>
> I'm posting this because it seems like a generic enough question.
>
> I've got Ruby 1.8.6. PostgreSQL 8.2
>
> I'm running command:
>
> ruby extconf.rb --with-pgsql-dir="C:\PostgreSQL\8.2\"
> --with-pgsql-dir="C:\PostgreSQL\8.2\lib" --ruby="C:\ruby"
>
> And it's complaining that it can't find a header file that I know exists
> where it's looking. The error is:
>
> checking for C:\PostgreSQL\8.2\include\server/catalog/pg_proc.h... no
>
> I've tried all sorts of paths, and have begun digging into extconf.rb,
> but no matter what the path, the have_header() function always causes
> the above error.

You've got two "--with-pgsql-dir" directives there. I'm guessing you
wanted something else for the second one. This worked for me (sort
of):

C:\rubyVC8\src\plruby-0.5.0>c:\rubyvc8\bin\ruby extconf.rb --with-
pgsql-dir=C:\Progra~1\PostgreSQL\8.1
checking for catalog/pg_proc.h... yes
checking for rb_hash_delete() in ruby.h... yes
checking for rb_block_call()... no
checking for server/utils/array.h... yes
The system cannot find the path specified.
The filename or extension is too long.
The filename or extension is too long.
The filename or extension is too long.
The filename or extension is too long.
creating Makefile

However, even if you get past that point, the generated Makefile is
not compatible with Windows' nmake. I get this:

C:\rubyVC8\src\plruby-0.5.0>nmake

Microsoft (R) Program Maintenance Utility Version 8.00.50727.42
Copyright (C) Microsoft Corporation. All rights reserved.

makefile(40) : fatal error U1001: syntax error : illegal character '{'
in macro
Stop.

I've mentioned this to Guy a long time ago, but he hasn't fixed it
yet.

Sorry to be a killjoy. Bug Guy about it. :)

Regards,

Dan

Blake Miller

4/6/2007 6:57:00 PM

0

Daniel Berger wrote:
> On Apr 6, 11:37 am, Blake Miller <blake...@hotmail.com> wrote:
>> --with-pgsql-dir="C:\PostgreSQL\8.2\lib" --ruby="C:\ruby"
> You've got two "--with-pgsql-dir" directives there.
Yes, I fixed that to no avail.

> However, even if you get past that point, the generated Makefile is
> not compatible with Windows' nmake. I get this:
Figured this was an uphill battle, and I really don't have time to debug
the thing. Would be cool to write procedures in Ruby though.

> I've mentioned this to Guy a long time ago, but he hasn't fixed it
> yet.
Yea, I did today too. He's not tested it in Windows though. Thanks for
the info.

--
Posted via http://www.ruby-....

Pastor Dave

8/18/2013 8:31:00 PM

0

#
X-FeedAbuse: http://nntpfeed.proxad.ne... feeded by 78.192.65.63
Path: textnews.cambrium.nl!feeder3.cambriumusenet.nl!feed.tweaknews.nl!212.27.60.9.MISMATCH!proxad.net!feeder2-2.proxad.net!nntpfeed.proxad.net!news.muarf.org!poup.poupinou.org!news.etla.org!aioe.org!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: Josh Rosenbluth <noway@nowhere.com>
Newsgroups: soc.retirement
Subject: Re: George Zimmerman's Biggest Defender: A Racist With a Criminal
Past Frank Taaffe, Zimmerman's unofficial media emissary, is a convicted
criminal who recently appeared on The White Voice, a virulently racist podcast.
Date: Sun, 18 Aug 2013 16:30:48 -0400
Organization: A noiseless patient Spider
Lines: 16
Message-ID: <kuratn$r0$2@dont-email.me>
References: <4d9k09pa7a4hequgf374238lvnpium1j74@4ax.com> <30am09p0km5v05lha4tlpisu7jkh2gml6q@4ax.com> <s3qm09pg01c7v2hn9kqe2psudhauodc6qq@4ax.com> <502n0912g4i9oep5nd0vg8vacm3dsl0umr@4ax.com> <f8dn09164q1nduo5033mri1tg80l9lq1r7@4ax.com> <htqo099fpa4pci7eqcmct70aih034j426c@4ax.com> <jdip09991svr9eh5747mcemo6r96v9tmqe@4ax.com> <bmb019pe9hm7rdj54jmtv3ogj1ugu6vle8@4ax.com> <al0119thl3mkcsasqqv06so3nsu43eepee@4ax.com> <16v119dtjoob9c6150ph3abidblsk39sfp@4ax.com> <277219lkor2rq763mr26sfou0fvh4gl9uf@4ax.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sun, 18 Aug 2013 20:30:47 +0000 (UTC)
Injection-Info: mx05.eternal-september.org; posting-host="79bac688e9f832d553065d24de2d1567";
logging-data="864"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/4JM8rp6tRUUcwiO9oUoz88tUhg70tgYw="
User-Agent: Mozilla/5.0 (Windows NT 6.2; WOW64; rv:17.0) Gecko/20130801 Thunderbird/17.0.8
In-Reply-To: <277219lkor2rq763mr26sfou0fvh4gl9uf@4ax.com>
Cancel-Lock: sha1:IyGRwlJtAMFT/p7XiwFvKiE0ukI=
Xref: textnews.cambrium.nl soc.retirement:798507

On 8/18/2013 3:16 PM, rumpelstiltskin wrote:
> On Sun, 18 Aug 2013 14:01:05 -0400, Planet Visitor II
> <nappy@nosuchserver.com> wrote:
>>>
>>> I was condemning the settlements, not the Jews in general.
>>> That was unmistakably clear, so I won't be interested in any
>>> construction that it was something else.
>>
>> Umm... I believe your words accused the Jews of being NAZIS.
>
> You've been a habitually calculating fabricator of
> malignant distortion, but you've really gone over the
> top this time. I'm done with you.

I guess he believes the millions of Jews in Israel who believe as you do
are also Nazis?