Professional Web Applications Themes

cannot compile from source, need help with "make" - Mac Programming

Hi, I'm trying to get ruby going on my Mac and I think this is a make command problem. I've downloaded mod_ruby 1.1.2 and then typed ./configure.rb --with-apxs to set up the make file. When I type make I get the following error: ld: Undefined symbols: _ap_add_cgi_vars _ap_add_common_vars _ap_add_version_component _ap_kill_timeout _ap_log_error _ap_null_cleanup _ap_palloc _ap_register_cleanup _ap_signal _ap_soft_timeout _ap_table_get _ap_table_set _environ _ap_append_arrays _ap_make_array _ap_make_table _ap_overlay_tables _ap_pcalloc _ap_pstrdup _ap_pstrndup _ap_push_array _ap_chdir_file _ap_get_server_built _ap_get_server_version _ap_server_root _ap_unescape_url _ap_clear_table _ap_table_add _ap_table_merge _ap_table_unset _core_module _ap_allow_options _ap_allow_overrides _ap_bgetopt _ap_construct_url _ap_custom_response _ap_default_type _ap_escape_html _ap_get_basic_auth_pw _ap_get_client_block _ap_get_remote_host _ap_get_remote_logname _ap_get_server_name _ap_get_server_port _ap_hard_timeout _ap_internal_redirect _ap_is_initial_req _ap_note_auth_failure _ap_note_basic_auth_failure _ap_note_digest_auth_failure _ap_psignature _ap_requires _ap_reset_timeout _ap_rflush ...

  1. #1

    Default cannot compile from source, need help with "make"

    Hi,

    I'm trying to get ruby going on my Mac and I think this is a make command
    problem.

    I've downloaded mod_ruby 1.1.2 and then typed ./configure.rb --with-apxs to
    set up the make file.

    When I type make I get the following error:

    ld: Undefined symbols:
    _ap_add_cgi_vars
    _ap_add_common_vars
    _ap_add_version_component
    _ap_kill_timeout
    _ap_log_error
    _ap_null_cleanup
    _ap_palloc
    _ap_register_cleanup
    _ap_signal
    _ap_soft_timeout
    _ap_table_get
    _ap_table_set
    _environ
    _ap_append_arrays
    _ap_make_array
    _ap_make_table
    _ap_overlay_tables
    _ap_pcalloc
    _ap_pstrdup
    _ap_pstrndup
    _ap_push_array
    _ap_chdir_file
    _ap_get_server_built
    _ap_get_server_version
    _ap_server_root
    _ap_unescape_url
    _ap_clear_table
    _ap_table_add
    _ap_table_merge
    _ap_table_unset
    _core_module
    _ap_allow_options
    _ap_allow_overrides
    _ap_bgetopt
    _ap_construct_url
    _ap_custom_response
    _ap_default_type
    _ap_escape_html
    _ap_get_basic_auth_pw
    _ap_get_client_block
    _ap_get_remote_host
    _ap_get_remote_logname
    _ap_get_server_name
    _ap_get_server_port
    _ap_hard_timeout
    _ap_internal_redirect
    _ap_is_initial_req
    _ap_note_auth_failure
    _ap_note_basic_auth_failure
    _ap_note_digest_auth_failure
    _ap_psignature
    _ap_requires
    _ap_reset_timeout
    _ap_rflush
    _ap_rputc
    _ap_rwrite
    _ap_satisfies
    _ap_send_fd_length
    _ap_send_http_header
    _ap_setup_client_block
    _ap_should_client_block
    _ap_sub_req_lookup_file
    _ap_sub_req_lookup_uri
    _ap_table_setn
    make: *** [mod_ruby.so] Error 1

    I don't know what this means really. It looks like it's having a problem
    finding all those things above. The "_ap" but suggests it's to do with
    Apache. I have apache 2.0.24 installed so it might be a path issue.

    Can someone help me so I know where to at least start looking. I've looked
    on ruby lists and sites but there's nothing that I've seen that can help.
    I've also posted questions, but haven't got any answers yet.

    Thanks,

    Roman
    Roman Guest

  2. #2

    Default Re: cannot compile from source, need help with "make"

    This looks like the linking step is unable to find one of the libraries
    that it needs.

    Take a look in the Makefile for the -L arguments and the -l arguments
    and make sure that all of the -L arguments points to a directory (where
    it looks for libraries) and that all of the -l arguments points to a
    file (typically -lfoo means look for libfoo.a).
    Shawn Guest

  3. #3

    Default Re: cannot compile from source, need help with "make"

    Roman Marszalek wrote: 

    I don't know if you've ever heard of the fink tool, but it's located at
    http://fink.sourceforge.net/

    It's a collection of programs that you can build from source, tailored
    for Mac OSX. I noticed ruby is one of the packages it can build.

    G5:~ loeppert$ fink list ruby
    Information about 1248 packages read in 0 seconds.
    ruby 1.8.0-11 Symlinks to ruby1.8
    ruby18 1.8.0-11 Interpreted, object-oriented
    scripting la...
    ruby18-dev 1.8.0-11 ruby static library
    ruby18-shlibs 1.8.0-11 ruby shared libraries

    You might give it a try if you're still frustrated.

    Anthony
    Anthony Guest

Similar Threads

  1. #33400 [Opn->Csd]: make "make" a dendency of "make test"
    By tony2001@php.net in forum PHP Bugs
    Replies: 0
    Last Post: November 11th, 01:54 AM
  2. Replies: 1
    Last Post: February 25th, 03:59 PM
  3. Source code for "syslog()" and "open" command shell
    By Alain in forum Mac Programming
    Replies: 3
    Last Post: January 2nd, 03:03 AM
  4. How to make the "search text" feature work with non "txt" file
    By Sharon F in forum Windows XP/2000/ME
    Replies: 0
    Last Post: June 30th, 07:43 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