rb-appscript installation on MAC OS 10.6.3 (Snow Leopard)

Discussion in 'Ruby' started by Saurabh Gupta, Mar 8, 2011.

  1. Hello,

    I am new user working on MAC OS and try to install rb-appscrip-0.6.0. I
    want Autoit functionality on the MAC OS with using rb-appscript.

    Ruby Version on MAC OS is:
    ruby 1.8.7 (2009-06-12 patchlevel 174) [i686-darwin9.7.0]

    Gem Version on MAC OS:
    1.6.1

    then i go to the destination where i downloaded the rb-appscript file
    and start installing it using the commands:
    1. ruby extconf.rb
    Output:
    create F:/ExpressKCS/APPLE_SCIPTS/rb-appscript-0.6.0/src/osx_ruby.h ...
    create F:/ExpressKCS/APPLE_SCIPTS/rb-appscript-0.6.0/src/osx_intern.h
    ...
    creating Makefile
    2. Make
    Output: cc -dynamic -bundle -undefined suppress -flat_namespace -o
    ae.bundle rbae.o SendThreadSafe.o -L. -L/usr/local/lib -L. -framework
    Carbon -framework ApplicationServices -lruby -lpthread -ldl -lobjc
    ld: warning: in /usr/local/lib/libruby.dylib, file was built for i386
    which is not the architecture being linked (x86_64)
    ld: in /usr/local/lib/libxml2.2.dylib, file was built for i386 which is
    not the architecture being linked (x86_64)
    collect2: ld returned 1 exit status
    make: *** [ae.bundle] Error 1
    and not able to install it.

    Please let me know from the basic how to install it on MAC OS.

    Thanks in Advance.
    Saurabh Gupta


    --
    Posted via http://www.ruby-forum.com/.
    Saurabh Gupta, Mar 8, 2011
    #1
    1. Advertising

  2. Saurabh Gupta

    Ryan Davis Guest

    On Mar 8, 2011, at 04:06 , Saurabh Gupta wrote:

    > Hello,
    >=20
    > I am new user working on MAC OS and try to install rb-appscrip-0.6.0. =

    I
    > want Autoit functionality on the MAC OS with using rb-appscript.
    >=20
    > Ruby Version on MAC OS is:
    > ruby 1.8.7 (2009-06-12 patchlevel 174) [i686-darwin9.7.0]
    >=20
    > Gem Version on MAC OS:
    > 1.6.1
    >=20
    > then i go to the destination where i downloaded the rb-appscript file
    > and start installing it using the commands:
    > 1. ruby extconf.rb
    > Output:
    > create F:/ExpressKCS/APPLE_SCIPTS/rb-appscript-0.6.0/src/osx_ruby.h =

    ...
    > create F:/ExpressKCS/APPLE_SCIPTS/rb-appscript-0.6.0/src/osx_intern.h
    > ...


    F: ?!?!

    > Output: cc -dynamic -bundle -undefined suppress -flat_namespace -o
    > ae.bundle rbae.o SendThreadSafe.o -L. -L/usr/local/lib -L. -framework
    > Carbon -framework ApplicationServices -lruby -lpthread -ldl -lobjc
    > ld: warning: in /usr/local/lib/libruby.dylib, file was built for i386
    > which is not the architecture being linked (x86_64)
    > ld: in /usr/local/lib/libxml2.2.dylib, file was built for i386 which =

    is
    > not the architecture being linked (x86_64)


    This says that you're trying to link a 32 bit library against a 64 bit =
    build. That's gonna be a problem. I'm not sure why you're manually =
    installing it at all, after reporting your rubygems version. Instead, =
    try installing the gem:

    9999 % sudo gem install rb-appscript
    Password:
    Updating installed gems
    Updating rb-appscript
    Fetching: rb-appscript-0.6.0.gem (100%)
    Building native extensions. This could take a while...
    Successfully installed rb-appscript-0.6.0
    Gems updated: rb-appscript
    Installing ri documentation for rb-appscript-0.6.0...
    Installing RDoc documentation for rb-appscript-0.6.0...
    10000 %=20
    Ryan Davis, Mar 8, 2011
    #2
    1. Advertising

  3. Ryan Davis wrote in post #986300:
    > On Mar 8, 2011, at 04:06 , Saurabh Gupta wrote:
    >
    >>
    >> then i go to the destination where i downloaded the rb-appscript file
    >> and start installing it using the commands:
    >> 1. ruby extconf.rb
    >> Output:
    >> create F:/ExpressKCS/APPLE_SCIPTS/rb-appscript-0.6.0/src/osx_ruby.h ...
    >> create F:/ExpressKCS/APPLE_SCIPTS/rb-appscript-0.6.0/src/osx_intern.h
    >> ...

    >
    > F: ?!?!
    >
    >> Output: cc -dynamic -bundle -undefined suppress -flat_namespace -o
    >> ae.bundle rbae.o SendThreadSafe.o -L. -L/usr/local/lib -L. -framework
    >> Carbon -framework ApplicationServices -lruby -lpthread -ldl -lobjc
    >> ld: warning: in /usr/local/lib/libruby.dylib, file was built for i386
    >> which is not the architecture being linked (x86_64)
    >> ld: in /usr/local/lib/libxml2.2.dylib, file was built for i386 which is
    >> not the architecture being linked (x86_64)

    >
    > This says that you're trying to link a 32 bit library against a 64 bit
    > build. That's gonna be a problem. I'm not sure why you're manually
    > installing it at all, after reporting your rubygems version. Instead,
    > try installing the gem:
    >
    > 9999 % sudo gem install rb-appscript
    > Password:
    > Updating installed gems
    > Updating rb-appscript
    > Fetching: rb-appscript-0.6.0.gem (100%)
    > Building native extensions. This could take a while...
    > Successfully installed rb-appscript-0.6.0
    > Gems updated: rb-appscript
    > Installing ri documentation for rb-appscript-0.6.0...
    > Installing RDoc documentation for rb-appscript-0.6.0...
    > 10000 %


    Hi Ryan Davis,

    Thanks for the reply....
    bUt when i tried to run the rb-appscript-0.6.0.gem then also it creating
    problem.
    Step which I Did:
    1.Navigate to the folder
    /usr/local/lib/ruby/gems/1.8/gems/rb-appscript-0.6.0/
    2. type the command: sudo gem install rb-appscript-0.6.0.gem

    output:

    Building native extensions. This could take a while...
    ERROR: Error installing rb-appscript-0.6.0.gem:
    ERROR: Failed to build gem native extension.



    Gem files will remain installed in
    /usr/local/lib/ruby/gems/1.8/gems/rb-appscript-0.6.0 for inspection.
    Results logged to
    /usr/local/lib/ruby/gems/1.8/gems/rb-appscript-0.6.0/./gem_make.out

    Please help me out to install it. I required very urgently. I will be
    very greatful.

    Regards,
    Saurabh Gupta

    --
    Posted via http://www.ruby-forum.com/.
    Saurabh Gupta, Mar 9, 2011
    #3
  4. When i Tried again i didnot find any rb-appscript gem under that. The
    files under the rb-appscript-0.6.0 folder are:

    CHANGES
    extconf.rb
    sample
    README
    gem_make.out
    src
    doc
    rb-appscript.gemspec
    test

    After check the list i tried to build the gem using gemspec:
    LALIT-JAINs-MacBook:rb-appscript-0.6.0 lalitjain$ sudo gem build
    rb-appscript.gemspec
    Password:
    [rb-appscript.gemspec] isn't a Gem::Specification (NilClass instead).
    ERROR: While executing gem ... (NoMethodError)
    undefined method `mark_version' for nil:NilClass

    --
    Posted via http://www.ruby-forum.com/.
    Saurabh Gupta, Mar 9, 2011
    #4
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Roedy Green

    Java hom foer the Mac Snow Leopard?

    Roedy Green, Sep 2, 2009, in forum: Java
    Replies:
    7
    Views:
    382
    Kevin McMurtrie
    Sep 7, 2009
  2. Pito Salas

    .irbc on Mac OS X Snow Leopard

    Pito Salas, Oct 15, 2009, in forum: Ruby
    Replies:
    1
    Views:
    109
    Pito Salas
    Oct 15, 2009
  3. Jason Fr
    Replies:
    1
    Views:
    140
    Joshua Ballanco
    Oct 19, 2009
  4. Une Bévue
    Replies:
    0
    Views:
    112
    Une Bévue
    May 31, 2010
  5. Saurabh Gupta
    Replies:
    0
    Views:
    89
    Saurabh Gupta
    Mar 9, 2011
Loading...

Share This Page