SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Enthusiast
    Join Date
    Jan 2007
    Posts
    72
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    *** Please Help - set up issues ***

    Hi there,

    I was advised to leave php and move onto Ruby so here i am.

    I've been on the ruby site, and downloaded the file to compile, and in addition to that i downloaded XCode for mac OS X.

    On terminal, I have tried following the instructions from the README file:
    * How to compile and install

    This is what you need to do to compile and install Ruby:

    1. If ./configure does not exist or is older than configure.in,
    run autoconf to (re)generate configure.

    2. Run ./configure, which will generate config.h and Makefile.

    3. Edit defines.h if you need. Usually this step will not be needed.

    4. Remove comment mark(#) before the module names from ext/Setup (or
    add module names if not present), if you want to link modules
    statically.

    If you don't want to compile non static extension modules
    (probably on architectures which does not allow dynamic loading),
    remove comment mark from the line "#option nodynamic" in
    ext/Setup.

    5. Run make.

    6. Optionally, run 'make test' to check whether the compiled Ruby
    interpreter works well. If you see the message "test succeeded",
    your ruby works as it should (hopefully).

    7. Run 'make install'

    You may have to be a super user to install ruby.

    If you fail to compile ruby, please send the detailed error report with
    the error log and machine/OS type, to help others.


    However, i get a few issues: (after typing make into the command line....

    1 - regex.c: In function 'ruby_re_compile_pattern':
    regex.c:1351: warning: incompatible implicit declaration of built-in function 'alloca'

    regex.c:1433: warning: incompatible implicit declaration of built-in function 'alloca'

    These issues are repeated, but with a different c:nnnn number before the warning:.

    2 - ossl_hmac.c:163: warning: pointer targets in passing argument 4 of 'HMAC' differ in signedness

    the log file in terminal is MASSIVE and then, then i thought it wouldn't get any worse (!) i got this...
    *****************************************************************************
    **
    ** PTHREAD SUPPORT MODE ERROR:
    **
    ** Ruby is not compiled with --enable-pthread, but your Tcl/Tk
    ** library seems to be compiled with pthread support. This
    ** combination may cause frequent hang or segmentation fault
    ** errors when Ruby/Tk is working. We recommend that you NEVER
    ** create the library with such a combination of pthread support.
    **
    ** Please recompile Ruby with the "--enable-pthread" configure option
    ** or recompile Tcl/Tk with the "--disable-threads" configure option.
    **
    *****************************************************************************

    Now my knowledge of editing in UNIX is none exixtent so have no idea what's going on here...

    After this finishes, i must type make install, which does the following:
    make install
    ./miniruby ./instruby.rb --dest-dir="" --extout=".ext" --make="make" --mflags="" --make-flags="" --installed-list .installed.list --mantype="doc"
    installing binary commands
    installing command scripts
    installing library scripts
    installing headers
    installing manpages
    installing extension objects
    installing extension scripts
    my name:~/Desktop/Ruby_on_Rails/ruby-1.8.6 my_name$

    Now, according to the instructions, that's it, but http://127.0.0.1:3000/ still returns a problem page as i cannot connect to localhost:3000

    Can anyone out there explain this to me in simple terms, and if possible, how do i get sorted with this?

    Really sorry for the long thread, but it's the only way to capture the error to ask for help..

    Advise and help much needed & appreciated.

    Craig

  2. #2
    SitePoint Wizard samsm's Avatar
    Join Date
    Nov 2001
    Location
    Atlanta, GA, USA
    Posts
    5,011
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Do you have 10.5? If so, only installing XCode was necessary.
    Using your unpaid time to add free content to SitePoint Pty Ltd's portfolio?

  3. #3
    SitePoint Enthusiast
    Join Date
    Jan 2007
    Posts
    72
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    do you mean my version of Mac OS X or ruby?

  4. #4
    l 0 l silver trophybronze trophy lo0ol's Avatar
    Join Date
    Aug 2002
    Location
    Palo Alto
    Posts
    5,329
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    OS X. Mac OS X Leopard (10.5) has Ruby, Rails, Mongrel, well, pretty much everything you'd need to get up and running on Rails. To be honest, I'm not sure why you want to be fiddling with XCode at this point if you're on Leopard... you can do everything with a text editor and it might be simpler and make more sense as you first learn the language and framework.


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
  •