Professional Web Applications Themes

pl-ruby detecting postgresql 7.4 under redhat - Ruby

I hope discussion on pl-ruby is welcome in this list. pl-ruby 0.3.8. RH7.3. postgresql 7.4.0 RPM from PGDG. In this installation, pg_config.h is located under /usr/include/pgsql/server/, not /usr/include/pgsql/. Thus extconf.rb fails to detect the version automatically. I need to add --with-pgsql-version explicitly, otherwise it will assume version is 7.3 and plruby will fail to build. What about adding this in extconf.rb: --- extconf.rb.orig Fri Feb 6 14:22:00 2004 +++ extconf.rb Fri Feb 6 14:28:38 2004 -49,6 +49,7 for version_in in [ "#{include_dir}/config.h", "#{include_dir}/pg_config.h", + "#{include_dir}/server/pg_config.h", "#{srcdir}/version.h.in", "#{srcdir}/pg_config.h" ] or perhaps adding "/usr/include/pgsql" as one of the default include_dir to search? ...

  1. #1

    Default pl-ruby detecting postgresql 7.4 under redhat

    I hope discussion on pl-ruby is welcome in this list.

    pl-ruby 0.3.8. RH7.3. postgresql 7.4.0 RPM from PGDG.

    In this installation, pg_config.h is located under
    /usr/include/pgsql/server/, not /usr/include/pgsql/. Thus extconf.rb
    fails to detect the version automatically. I need to add
    --with-pgsql-version explicitly, otherwise it will assume version is 7.3
    and plruby will fail to build.

    What about adding this in extconf.rb:

    --- extconf.rb.orig Fri Feb 6 14:22:00 2004
    +++ extconf.rb Fri Feb 6 14:28:38 2004
    -49,6 +49,7
    for version_in in [
    "#{include_dir}/config.h",
    "#{include_dir}/pg_config.h",
    + "#{include_dir}/server/pg_config.h",
    "#{srcdir}/version.h.in",
    "#{srcdir}/pg_config.h"
    ]

    or perhaps adding "/usr/include/pgsql" as one of the default include_dir
    to search?

    --
    dave


    David Guest

  2. #2

    Default Re: pl-ruby detecting postgresql 7.4 under redhat

    >>>>> "D" == David Garamond <6.isreserved.com> writes:

    D> What about adding this in extconf.rb:

    I've applied the patch, Thanks


    Guy Decoux



    ts Guest

  3. #3

    Default pl-ruby & ruby 1.6 on freebsd (was Re: pl-ruby detecting postgresql 7.4 under redhat)

    ts wrote: [/ref]
    >
    > D> What about adding this in extconf.rb:
    >
    > I've applied the patch, Thanks[/ref]

    Btw, someone on the pg-general list tried building pl-ruby with Ruby 1.6
    on FreeBSD and it failed (IIRC, the error message was that plruby.so
    can't be loaded due to missing symbol 'rb_hash_delete'). He upgraded to
    Ruby 1.8 and succeeded. If pl-ruby now requires Ruby 1.8, perhaps the
    docs need to be updated.

    --
    dave



    David Guest

  4. #4

    Default Re: pl-ruby & ruby 1.6 on freebsd (was Re: pl-ruby detecting postgresql 7.4 under redhat)

    >>>>> "D" == David Garamond <6.isreserved.com> writes:

    D> Btw, someone on the pg-general list tried building pl-ruby with Ruby 1.6
    D> on FreeBSD and it failed (IIRC, the error message was that plruby.so
    D> can't be loaded due to missing symbol 'rb_hash_delete'). He upgraded to
    D> Ruby 1.8 and succeeded. If pl-ruby now requires Ruby 1.8, perhaps the
    D> docs need to be updated.

    I'll modify it, it must work with 1.6 -> 1.8 and PostgreSQL 6.4 -> 7.4


    Guy Decoux






    ts Guest

Similar Threads

  1. [Q] Can RedHat Intel32 compiled app run directly on RedHat AMD64 ?
    By Braincramp in forum Linux / Unix Administration
    Replies: 5
    Last Post: March 2nd, 06:16 PM
  2. PostgreSQL, Ruby, FX Ruby and Windows XP
    By Szymon Drejewicz in forum Ruby
    Replies: 5
    Last Post: September 22nd, 09:14 AM
  3. [ANN] ruby-freedb, ruby-serialport, ruby-mp3info moved to Rubyforge
    By guillaume.pierronnet@ratp.fr in forum Ruby
    Replies: 0
    Last Post: August 31st, 11:57 PM
  4. configuring php 4.3.1 along with postgresql 7.2.3 on redhat 8.0
    By Jerry Asher in forum PHP Development
    Replies: 0
    Last Post: July 17th, 12:23 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139