vim +ruby problem
S.M. Protsman
protsman at mac.com
Mon Feb 20 21:21:51 PST 2012
The 'provides' option shows that it comes from ruby19. Any idea why this isn't libruby.1.9.3.dylib and libruby.1.9.3-static.a?
On Feb 20, 2012, at 9:15 PM, S.M. Protsman wrote:
> Another thing I find interesting -- what is installing libruby.1.9.1? I had Ruby 1.8.7 and 1.9.3 from MacPorts.
>
> [darcy:tmp]> ll /opt/local/lib/libruby.1.9.*
> -rw-r--r-- 1 root admin 2.7M Feb 20 15:10 /opt/local/lib/libruby.1.9.1-static.a
> -rwxr-xr-x 1 root admin 2.0M Feb 20 15:10 /opt/local/lib/libruby.1.9.1.dylib*
> lrwxrwxrwx 1 root admin 19B Feb 20 15:13 /opt/local/lib/libruby.1.9.dylib@ -> libruby.1.9.1.dylib
>
>
>
> On Feb 20, 2012, at 3:36 PM, S.M. Protsman wrote:
>
>> When I ran port update this morning ruby got updated:
>>
>> ---> Activating ruby @1.8.7-p358_0+thread_hooks
>> Error: Target org.macports.activate returned: Image error: /opt/local/bin/erb is being used by the active ruby19 port. Please deactivate this port first, or use 'port -f activate ruby' to force the activation.
>> Portfile changed since last build; discarding previous state.
>> <snip>
>> ---> Activating ruby19 @1.9.3-p125_0+doc+nosuffix
>> <snip>
>>
>> Then a problem executing vim happens after portupdate:
>>
>>> vim Makefile
>> dyld: Symbol not found: _environ
>> Referenced from: /opt/local/lib/libruby.1.9.1.dylib
>> Expected in: flat namespace
>> in /opt/local/lib/libruby.1.9.1.dylib
>> Trace/BPT trap: 5
>>
>> [darcy:tmp]> sudo port -f activate ruby @1.8.7-p358_0+thread_hooks
>> [darcy:tmp]> sudo port install MacVim +perl +python32 +ruby +cscope
>> [darcy:tmp]> sudo port install vim +perl +python32 +ruby +cscope
>>
>> Attempt to get ruby-1.9 back:
>>
>> [darcy:tmp]> sudo port -f activate ruby19 @1.9.3-p125_0+doc+nosuffix
>> Password:
>> ---> Computing dependencies for ruby19
>> ---> Cleaning ruby19
>> [darcy:liballkeyrtv (master)⚡]> ruby -v
>> ruby 1.8.7 (2012-02-08 patchlevel 358) [i686-darwin11]
>>
>> List installed:
>>
>> [darcy:tmp]> port installed | grep ruby
>> MacVim @7.3.snapshot64_0+cscope+perl+python32+ruby (active)
>> ruby @1.8.7-p358_0+thread_hooks (active)
>> ruby19 @1.9.3-p125_0+doc+nosuffix (active)
>> vim @7.3.410_0+cscope+perl+python32+ruby (active)
>>
>> Not knowing what else to try, I uninstalled an reinstalled:
>>
>> [darcy:tmp]> sudo port uninstall ruby19
>> ---> Deactivating ruby19 @1.9.3-p125_0+doc+nosuffix
>> ---> Cleaning ruby19
>> ---> Uninstalling ruby19 @1.9.3-p125_0+doc+nosuffix
>> ---> Cleaning ruby19
>>
>> [darcy:tmp]> sudo port install ruby19 +nosuffix
>> Error: Requested variants "+doc+nosuffix" do not match original selection "+doc".
>> Please use the same variants again, perform 'port clean ruby19' or specify the force option (-f).
>> Error: Status 1 encountered during processing.
>> To report a bug, see <http://guide.macports.org/#project.tickets>
>> [darcy:liballkeyrtv (master)⚡]> sudo port clean ruby19
>> ---> Cleaning ruby19
>> [darcy:liballkeyrtv (master)⚡]> sudo port install ruby19 +nosuffix
>> ---> Computing dependencies for ruby19
>> ---> Fetching archive for ruby19
>> ---> Attempting to fetch ruby19-1.9.3-p125_0+doc+nosuffix.darwin_11.x86_64.tbz2 from http://packages.macports.org/ruby19
>> <snip>
>> ---> Activating ruby19 @1.9.3-p125_0+doc+nosuffix
>> Error: Target org.macports.activate returned: Image error: /opt/local/bin/erb is being used by the active ruby port. Please deactivate this port first, or use 'port -f activate ruby19' to force the activation.
>> Log for ruby19 is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_ruby19/ruby19/main.log
>> Error: Status 1 encountered during processing.
>> To report a bug, see <http://guide.macports.org/#project.tickets>
>>
>> [darcy:tmp]> sudo port -f activate ruby19
>> Password:
>> ---> Computing dependencies for ruby19
>> ---> Activating ruby19 @1.9.3-p125_0+doc+nosuffix
>> Warning: File /opt/local/bin/erb already exists. Moving to: /opt/local/bin/erb.mp_1329780484.
>> Warning: File /opt/local/bin/irb already exists. Moving to: /opt/local/bin/irb.mp_1329780484.
>> Warning: File /opt/local/bin/rdoc already exists. Moving to: /opt/local/bin/rdoc.mp_1329780484.
>> Warning: File /opt/local/bin/ri already exists. Moving to: /opt/local/bin/ri.mp_1329780484.
>> Warning: File /opt/local/bin/ruby already exists. Moving to: /opt/local/bin/ruby.mp_1329780484.
>> Warning: File /opt/local/bin/testrb already exists. Moving to: /opt/local/bin/testrb.mp_1329780484.
>> Warning: File /opt/local/lib/libruby.dylib already exists. Moving to: /opt/local/lib/libruby.dylib.mp_1329780484.
>> Warning: File /opt/local/share/man/man1/ruby.1.gz already exists. Moving to: /opt/local/share/man/man1/ruby.1.gz.mp_1329780484.
>> ---> Cleaning ruby19
>> [darcy:tmp]> ruby -v
>> ruby 1.9.3p125 (2012-02-16 revision 34643) [x86_64-darwin11]
>>
>> [darcy:tmp]> vim libfoo.spec
>> dyld: Symbol not found: _environ
>> Referenced from: /opt/local/lib/libruby.dylib
>> Expected in: flat namespace
>> in /opt/local/lib/libruby.dylib
>> Trace/BPT trap: 5
>>
>> This is crazy. Is there anyway for me to have vim +ruby working and still be using ruby19?
>>
>>
>> _______________________________________________
>> macports-users mailing list
>> macports-users at lists.macosforge.org
>> http://lists.macosforge.org/mailman/listinfo.cgi/macports-users
>
> _______________________________________________
> macports-users mailing list
> macports-users at lists.macosforge.org
> http://lists.macosforge.org/mailman/listinfo.cgi/macports-users
More information about the macports-users
mailing list