How to unload a .so file?
-
You want to do this on just YOUR machine, or on other people's machines who have your plugin ?
-
Please explain WHY you think you need to do this ??
How will you determine what VERSION of Win32API has been loaded ?? (There is no version information within it's C source or it's resulting Ruby class.)
-
@dan rathbun said:
You want to do this on just YOUR machine, or on other people's machines who have your plugin ?
Just on my own machine.
-
@dan rathbun said:
Please explain WHY you think you need to do this ??
How will you determine what VERSION of Win32API has been loaded ?? (There is no version information within it's C source or it's resulting Ruby class.)
I run a plugin,return "Error: #<RuntimeError: Incompatible digest API version>".
I think maybe a deffirent version of digest API has been loaded.So I want to unload it. -
DO you have the .so version that is appropriate to your Sketchup version ?
Dan has them set out here http://forums.sketchucation.com/viewtopic.php?p=380121#p380121 -
Sounds like your plugin wants to use digest.so
-
-
@wikii said:
Is there a way to unload a loaded *.so file?
Not really as it's not written in Ruby. It's written in C.
The solution is to control the Ruby enviroment you are running, so:
Where and what Ruby version is your so files getting loaded from ??
What ruby version are you running ??
In the Ruby Console type:
RUBY_VERSION
and
RUBY_PATCHLEVEL
What platform are you running on?
What SketchUp edition, version and MR are you using ??
(Your forum user info is not displaying this info. Please go to the forum User Control Panel, and enter this info. It will help us help you better, and the forum's cleanup routine will not flag you as needing to be deleted.) -
You could do what I did - download the Win32 API from the Win32 Utils project: http://rubyforge.org/projects/win32utils (download the win32-api package), modify it into your own namespace and build your own version.
-
@dan rathbun said:
@wikii said:
Is there a way to unload a loaded *.so file?
Not really as it's not written in Ruby. It's written in C.
The solution is to control the Ruby enviroment you are running, so:
Where and what Ruby version is your so files getting loaded from ??
What ruby version are you running ??
In the Ruby Console type:
RUBY_VERSION
and
RUBY_PATCHLEVEL
What platform are you running on?
What SketchUp edition, version and MR are you using ??
(Your forum user info is not displaying this info. Please go to the forum User Control Panel, and enter this info. It will help us help you better, and the forum's cleanup routine will not flag you as needing to be deleted.)Thank you!
RUBY_VERSION
1.8.6
RUBY_PATCHLEVEL
287My platform is win7 64bit.Sketchup version is 8.0.14364.
And I modified my info in control panel.I need more help about unload a .so file.
Thank you! -
The solution is to control the Ruby enviroment you are running, so:
Where did you get the .so files that you are trying to load ??
What Ruby version / patchlevel did they come from ?
-
-
Get the full Ruby & install it
and use the !loadpaths script (or something similar,) to be sure that files from the system Ruby libs are loading.
http://forums.sketchucation.com/viewtopic.php?t=29412#p257058Remove any standard Ruby .so files from plugin dir.
-
How are you doing on the so file version situation ??
-
-
-
Advertisement