Question-and-Answer Resource for the Building Energy Modeling Community
Get started with the Help page

# OpenStudio and SketchUp Plugin + Linux (Wine)

Hello, I am trying to make the OpenStudio SketchUp Plugin work under Linux (Xubuntu) with Wine. I have installed SketchUp Make 2014 for Windows with Wine (in Xubuntu) and with some tricks found on WineHQ about it I made SketchUp work. After that, I have installed the OpenStudio Suite for Windows, again with Wine, but I can't see any Plugin in SketchUp. In the OpenStudio/Ruby directory (Wine under Linux, again) there is a folder which contains the SketchUp plugin ruby files, which are supposed to work fine in a "pure Windows" OS, but here with Wine the plugin cannot be loaded. In fact I get the error "Error loading OpenStudio SketchUp Plug-in: cannot load such file -- pathname", which in the end derives from the file "Startup.rb" in the last lines:

UI.messagebox("Error loading OpenStudio SketchUp Plug-In:\n  #{e.message}", MB_OK)


The point is: does anybody get this plugin for SketchUp work with Linux (Wine)? Thank you!

edit retag close merge delete

I haven't heard of anyone getting this to work for either the legacy plug-in or the plug-in included with the new application suite. I don't think that it would be impossible but I don't know how hard it would be.

( 2014-11-02 22:50:33 -0500 )edit

Sort by » oldest newest most voted

As you're running on linux, you had to add the parameter /disablerubyapp, needed to run SketchUp version 2014 & 2015, is also the reason why plugins don't work. Even dos2unix all the *.rb files didn't satisfy neither. Also installing under wine the new ruby versions 2.0 & 2.4 didn't solve. Got also an exit out of SU2015 by simple pas over the file-menu. As far as now best version to run on linux is the 2013. There you'll have the possibility to run ruby scripts. Having a problem with an error concerning shell32. dll

Greetings Xiao Shi Zi.

more

I got stuck at the making SketchUp stage (on Ubuntu 12.04).

I suggest a thorough check of the dependencies - is Ruby installed and working ? and the filepaths - can you open the addons scripts at the locations where the error message occurs ? It is a safe assumption that the Windows installation procedure has left some windows style filepath and locations. I would look for those and if you find any, edit them to point to where they actually are.

more

Thanks, Probably it's "just" a matter of windows-style paths, different from wine-style paths, but indeed it's a huge work since there are a lot of rb scripts in this plugin.. I'll try and check whether it's reasonable to change them all (and the result is not guaranteed...).

( 2014-11-02 03:55:31 -0500 )edit

I have followed the flow of the code:

1) wine/drive_c/users/Public/Application Data/.../SketchUp/Plugins/OpenStudio/Startup.rb require 'OpenStudio/OpenStudio-config.rb'

2) wine/drive_c/users/Public/Application Data/.../SketchUp/Plugins/OpenStudio/OpenStudio-config.rb require 'C:\Program Files (x86)\OpenStudio 1.5.0\Ruby\openstudio.rb'

3) C:\Program Files (x86)\OpenStudio 1.5.0\Ruby\openstudio.rb at the beginning of this file the following command won't work: require "pathname"

Stuck here.

( 2014-11-02 06:36:51 -0500 )edit

I have went on changing the relative paths with absolute paths until the "openssl.so" (which can't be modified by text editing of course) gives the error: "Verify that ruby can access the OpenSSL libraries".

Can't really go on now.

( 2014-11-02 07:22:55 -0500 )edit