Prashant's Perceptions (Comments)https://blogs.oracle.com/prashant/feed/comments/atom2009-06-22T23:06:42+00:00Apache Rollerhttps://blogs.oracle.com/prashant/entry/typo_on_ec2#comment-1245712002000Re: Typo in OpenSolaris RoR AMI on Amazon EC2Anko Painting2009-06-22T23:06:42+00:002009-06-22T23:06:42+00:00
<p>Why not use Phusion Passenger/apache instead of thin/nginx? Just wondering.</p>
<p>Really like the use of solaris privledges.</p>
https://blogs.oracle.com/prashant/entry/smf_manifest_for_nginx#comment-1241006663000Re: SMF manifest for NginxJyri Virkki2009-04-29T12:04:23+00:002009-04-29T12:04:23+00:00
<p>Please note nginx is available from Web Stack repository (<a href="http://pkg.opensolaris.org/webstack)" rel="nofollow">http://pkg.opensolaris.org/webstack)</a> since last summer. The package includes smf integration built-in.</p>
<p><a href="http://blogs.sun.com/jyrivirkki/entry/nginx_package_updates" rel="nofollow">http://blogs.sun.com/jyrivirkki/entry/nginx_package_updates</a></p>
<p>(The manual import is no longer needed, the pkg bug has since been fixed.)</p>
https://blogs.oracle.com/prashant/entry/how_does_one_update_anything#comment-1240007419000Re: To update Ruby, or any other application on OpenSolaris . . .anon2009-04-17T22:30:19+00:002009-04-17T22:30:19+00:00
<p>You probably forgot to mention that a reboot is required after &quot;pkg image-update&quot; for the upgrade to take effect. Reminds me of windows :-)</p>
https://blogs.oracle.com/prashant/entry/installing_imagescience_more_of_an#comment-1238068060000Re: installing ImageScience an art?Shanti Subramanyam2009-03-26T11:47:40+00:002009-03-26T11:47:40+00:00
<p>You're Makefile for FreeImage is using /usr as the install dir. This will not work in a zones environment. image_science by default looks for FreeImage in /opt/local - so it's good to simply set the installdir to this location.<br/>
See <a href="http://blogs.sun.com/shanti/entry/freeimage_and_imagescience_on_opensolaris" rel="nofollow">http://blogs.sun.com/shanti/entry/freeimage_and_imagescience_on_opensolaris</a></p>
https://blogs.oracle.com/prashant/entry/how_does_one_update_ruby#comment-1233832659000Re: How does one update Ruby in OpenSolaris?Haik2009-02-05T11:17:39+00:002009-02-05T11:17:39+00:00
<p>@neel - &quot;pkg image-update&quot; can be run, but no it is not required.</p>
<p>If you use the Package Manager GUI, not to be confused with the Update Manager GUI, you can simply check the box for the Ruby package and click the button labeled &quot;Install/Update&quot;. This will install the package into your active boot environment as you would expect from a typical package manager.</p>
<p>From the shell, you would have to issue the commands &quot;pkg refresh ; pkg install &lt;pkg_fmri&gt;&quot;. If you already have ruby installed, after running &quot;pkg refresh&quot;, a &quot;pkg list -u&quot; should list any available updates.</p>
<p>I wouldn't want to run the image-update command to upgrade a single package. However, if there were a lot of new package versions, I might use image-update so I could revert back to the old boot environment if the new packages broke something important to me. And yes, switching boot environments requires a reboot.</p>
https://blogs.oracle.com/prashant/entry/how_does_one_update_ruby#comment-1233828105000Re: How does one update Ruby in OpenSolaris?neel2009-02-05T10:01:45+00:002009-02-05T10:01:45+00:00
<p>I hate to rant here, but isn't &quot;pkg image-update&quot; require a reboot before the new &quot;be&quot; can be activated? Are we supposed to reboot just to get a newer version of ruby? :-(</p>
https://blogs.oracle.com/prashant/entry/how_does_one_update_ruby#comment-1233784930000Re: How does one update Ruby in OpenSolaris?Prashant Srinivasan2009-02-04T22:02:10+00:002009-02-04T22:02:10+00:00
<p>@Haik - you're right. We do allow security fixes. This system was created around 2008.11 - so wasn't as useful during the early patch releases of 1.8.6.</p>
<p> You can count on Ruby security fixes bring in /release - if I can help that at all.</p>
<p>@Neel - Hey. Yes, you can use the command line as well - just use pkg set-authority and image-update. Check out pkg(1) - <a href="http://opensolaris.org/sc/src/pkg/gate/src/man/pkg.1.txt" rel="nofollow">http://opensolaris.org/sc/src/pkg/gate/src/man/pkg.1.txt</a></p>
<p>I don't believe you can update only Ruby - we specify a lot of system packages as dependencies, and since the dev repository has all packages available, your IPS client is probably going to upgrade the dependencies(and theirs) to their new version - irrespective of whether they have changed. Now I haven't actually verified this, but it seems likely.</p>
https://blogs.oracle.com/prashant/entry/how_does_one_update_ruby#comment-1233772105000Re: How does one update Ruby in OpenSolaris?neel2009-02-04T18:28:25+00:002009-02-04T18:28:25+00:00
<p>Can you update only ruby? How do I do it on the command line?</p>
https://blogs.oracle.com/prashant/entry/how_does_one_update_ruby#comment-1233766567000Re: How does one update Ruby in OpenSolaris?Haik2009-02-04T16:56:07+00:002009-02-04T16:56:07+00:00
<p>Hi Prashant,</p>
<p>You wrote &quot;this repository is frozen at the time of an OpenSolaris release and is updated only when the next official release occurs.&quot;</p>
<p>Although new features and new versions of software are not likely to show up in the /release repository, it isn't frozen. The plan is to provide security updates and critical bug fixes in /release. So far, for 2008.11, we haven't had any such updates.</p>
<p>The repositories are explained here</p>
<p><a href="http://www.opensolaris.com/learn/features/whats-new/200811/#developer_repository" rel="nofollow">http://www.opensolaris.com/learn/features/whats-new/200811/#developer_repository</a></p>
<p>So hopefully, if there were say security vulnerabilities in Ruby, we'd get updates in /release.</p>
https://blogs.oracle.com/prashant/entry/the_ruby_t_square_operator#comment-1229549346000Re: The curious case of the Ruby T-Square operator.Prashant Srinivasan2008-12-17T21:29:06+00:002008-12-17T21:29:06+00:00
<p>@ste thanks. this goes curiouser and curiouser - I tend to agree with the author of the blog entry that while this may be correct operation, is not quite intuitive. </p>
<p>One persons' abstruse may be another person's intuitive - I mentioned ||= to a friend over coffee today, and he found it quite reasonable ;-)</p>
<p>@Mark - Great point, thanks for the lucid example.</p>
https://blogs.oracle.com/prashant/entry/the_ruby_t_square_operator#comment-1229354160000Re: The curious case of the Ruby T-Square operator.Mark Wilden2008-12-15T15:16:00+00:002008-12-15T15:16:00+00:00
<p>Your comment about using nil as a default argument when the actual default value is different is a good one.</p>
<p>It's good for more than just readability - it helps with method call chains. Consider:</p>
<p>class Super<br/>
def self.foo arg = nil<br/>
arg ||= &quot;Mark&quot;<br/>
@name = arg<br/>
end<br/>
end</p>
<p>class Sub<br/>
def self.foo arg1, arg2 = nil<br/>
# do something with arg1<br/>
super arg2<br/>
end<br/>
end</p>
<p>The intent is that Sub.foo(1) ends up setting @name to &quot;Mark&quot;. This wouldn't work if Super.foo was defined like</p>
<p> def self.foo arg = &quot;Mark&quot;<br/>
@name = arg<br/>
end</p>
https://blogs.oracle.com/prashant/entry/the_ruby_t_square_operator#comment-1229271458000Re: The curious case of the Ruby T-Square operator.ste2008-12-14T16:17:38+00:002008-12-14T16:17:38+00:00
<p>Actually, a ||= expr is equivalent to a || a = expr, not a = a || expr (see: <a href="http://dablog.rubypal.com/2008/3/25/a-short-circuit-edge-case)" rel="nofollow">http://dablog.rubypal.com/2008/3/25/a-short-circuit-edge-case)</a></p>
https://blogs.oracle.com/prashant/entry/ruby_and_enable_pthreads#comment-1226069139000Re: Ruby, concurrency, and --enable-pthreadPrashant Srinivasan2008-11-07T14:45:39+00:002008-11-07T14:45:39+00:00
<p>@Charles: Thanks for pointing that out, JRuby is definitely much better than MRI-1.8.6 at concurrency(I modified my original entry to make this clear) and most other tests.</p>
<p> It's easy to be better than MRI at threading. JRuby was just as bad prior to 1.1.1, and at 1.1.1, it began to scale(It had to do with local variables in the same class being addressed on the same cache line in jdk 6, so cache contention negated much of the scalability that using native threads brought in - and I believe you and Tom fixed this in a 1.1.1rc).</p>
<p> So, things became much better from that point, but the scalability erosion with the second thread was still about 50%, 80% with the third, and so on. Thats leaves some to be desired(compared to ideal scaling)</p>
<p> I haven't looked at how 1.1.4 behaves - let me fire those off and put out some data.</p>
<p>@alan - Interesting, I'm not sure what's happening on your setup. The get/setcontext stuff sits plumb in eval.c so not much chance of avoiding it with some workloads and getting it with others. I'd suggest profiling your code path with pthreads and without to verify what's happening in the interpreter. </p>
https://blogs.oracle.com/prashant/entry/ruby_and_enable_pthreads#comment-1226046261000Re: Ruby, concurrency, and --enable-pthreadalan2008-11-07T08:24:21+00:002008-11-07T08:24:21+00:00
<p>Not to be the contradictosaurus, but on my 2nd+ batch of httperfasauruses against the aforementioned slower interpretersaurus (with pthreadosaurus on and off), I show bench times being within around 5% of eachotherasauruses.</p>
https://blogs.oracle.com/prashant/entry/ruby_and_enable_pthreads#comment-1225912090000Re: Ruby, concurrency, and --enable-pthreadCharles Oliver Nutter2008-11-05T19:08:10+00:002008-11-05T19:08:10+00:00
<p>How do you figure &quot;JRuby is a little bit better at threading, though not much better than MRI&quot;? First off, JRuby actually has real native threads, which Ruby 1.8 does not. And JRuby's threads actually run in parallel, which Ruby 1.9's do not. JRuby is a lot better at threading.</p>
https://blogs.oracle.com/prashant/entry/where_s_my_ruby#comment-1213704444000Re: Where's my Ruby?guest2008-06-17T12:07:24+00:002008-06-17T12:07:24+00:00
<p>Prashant,</p>
<p>we unistalled sunstudioexpress and ruby-dev to try to redo everything. ImageMagick was unistalled.<br/>
We tried installing ImageMagick from source following guidelines at ImageMagick site, but get errors regarding the encoding UTF-8. Would you suggest some URL having guidelines for isntalling ImageMagick for OpenSolaris??</p>
https://blogs.oracle.com/prashant/entry/where_s_my_ruby#comment-1213637908000Re: Where's my Ruby?Prashant Srinivasan2008-06-16T17:38:28+00:002008-06-16T17:38:28+00:00
<p>Thats strange - a quick Google search revealed that this could be because of a live upgrade gone bad.</p>
<p><a href="http://blogs.sun.com/sch/entry/a_not_quite_isochronous_upgrade" rel="nofollow">http://blogs.sun.com/sch/entry/a_not_quite_isochronous_upgrade</a></p>
<p>A clean upgrade/reinstall might help you here. </p>
https://blogs.oracle.com/prashant/entry/where_s_my_ruby#comment-1213635618000Re: Where's my Ruby?guest2008-06-16T17:00:18+00:002008-06-16T17:00:18+00:00
<p>Prashant,</p>
<p>I got a little further but I still have problems.</p>
<p>This is the error I get now:</p>
<p>--------------------</p>
<p>have_library: checking for InitializeMagick() in -lMagickCore... -------------------- no</p>
<p>&quot;/opt/SUNWspro/bin/cc -o conftest -I. -I/usr/ruby/1.8/lib/ruby/1.8/i386-solaris2.11 -I. -I/usr/include -xO3 -xarch=386 -xchip=pentium -xspace -Xa -xildoff -xc99=all -D_REENTRANT conftest.c -L'.' -L'/usr/ruby/1.8/lib' -R'/usr/ruby/1.8/lib' -L/usr/lib -L/usr/lib -L/usr/sfw/lib -L/usr/sfw/lib -L/usr/X/lib -R/usr/sfw/lib:/usr/X/lib -L/usr/openwin/lib -R/usr/openwin/lib -lfreetype -lMagick -ltiff -lfreetype -ljpeg -lfontconfig -lXext -lSM -lICE -lX11 -lsocket -lnsl -lXt -lbz2 -lz -lpthread -lm -lpthread -lWand -lMagick -lruby-static -lMagickCore -lpthread -ldl -lcrypt -lm -lc&quot;<br/>
ld.so.1: ld: fatal: libld.so.4: version `SUNWprivate_4.2' not found (required by file /usr/bin/ld)<br/>
ld.so.1: ld: fatal: libld.so.4: open failed: No such file or directory<br/>
ld.so.1: ld: fatal: relocation error: file /usr/bin/ld: symbol ld32_main: referenced symbol not found<br/>
cc: Fatal error in /usr/ccs/bin/ld : Killed<br/>
checked program was:<br/>
/\* begin \*/<br/>
1: #include &lt;assert.h&gt;<br/>
2: #include &lt;ctype.h&gt;<br/>
3: #include &lt;stdio.h&gt;<br/>
4: #include &lt;stdlib.h&gt;<br/>
5: #include &lt;math.h&gt;<br/>
6: #include &lt;time.h&gt;<br/>
7: #include &lt;stdint.h&gt;<br/>
8: #include &lt;sys/types.h&gt;<br/>
9: #include &lt;magick/MagickCore.h&gt;<br/>
10: <br/>
11: /\*top\*/<br/>
12: int main() { return 0; }<br/>
13: int t() { void ((\*volatile p)()); p = (void ((\*)()))InitializeMagick; return 0; }<br/>
/\* end \*/</p>
<p>&quot;/opt/SUNWspro/bin/cc -o conftest -I. -I/usr/ruby/1.8/lib/ruby/1.8/i386-solaris2.11 -I. -I/usr/include -xO3 -xarch=386 -xchip=pentium -xspace -Xa -xildoff -xc99=all -D_REENTRANT conftest.c -L'.' -L'/usr/ruby/1.8/lib' -R'/usr/ruby/1.8/lib' -L/usr/lib -L/usr/lib -L/usr/sfw/lib -L/usr/sfw/lib -L/usr/X/lib -R/usr/sfw/lib:/usr/X/lib -L/usr/openwin/lib -R/usr/openwin/lib -lfreetype -lMagick -ltiff -lfreetype -ljpeg -lfontconfig -lXext -lSM -lICE -lX11 -lsocket -lnsl -lXt -lbz2 -lz -lpthread -lm -lpthread -lWand -lMagick -lruby-static -lMagickCore -lpthread -ldl -lcrypt -lm -lc&quot;<br/>
&quot;conftest.c&quot;, line 13: prototype mismatch: 0 args passed, 1 expected<br/>
cc: acomp failed for conftest.c<br/>
checked program was:<br/>
/\* begin \*/<br/>
1: #include &lt;assert.h&gt;<br/>
2: #include &lt;ctype.h&gt;<br/>
3: #include &lt;stdio.h&gt;<br/>
4: #include &lt;stdlib.h&gt;<br/>
5: #include &lt;math.h&gt;<br/>
6: #include &lt;time.h&gt;<br/>
7: #include &lt;stdint.h&gt;<br/>
8: #include &lt;sys/types.h&gt;<br/>
9: #include &lt;magick/MagickCore.h&gt;<br/>
10: <br/>
11: /\*top\*/<br/>
12: int main() { return 0; }<br/>
13: int t() { InitializeMagick(); return 0; }<br/>
/\* end \*/</p>
<p>========================</p>
<p>I ran the following commands (which show some version incompatibility and I do not know what it means):</p>
<p># cat /etc/motd<br/>
Sun Microsystems Inc. SunOS 5.11 snv_90 January 2008</p>
<p># mcs -p /usr/ccs/bin/ld<br/>
/usr/ccs/bin/ld:</p>
<p>@(#)SunOS 5.11 snv_86 January 2008</p>
https://blogs.oracle.com/prashant/entry/where_s_my_ruby#comment-1213634396000Re: Where's my Ruby?Prashant Srinivasan2008-06-16T16:39:56+00:002008-06-16T16:39:56+00:00
<p>I believe I got it to compile . . .here's the steps I had to take - </p>
<p>1. revert Magick-config to it's original state(with the Studio specific flags and all that).</p>
<p>2. make sure you have &quot;sunstudioexpress&quot; package installed.</p>
<p>3. wget <a href="http://blogs.sun.com/prashant/resource/sun_studio/rbconfig.rb" rel="nofollow">http://blogs.sun.com/prashant/resource/sun_studio/rbconfig.rb</a> and copy the rbconfig.rb into /usr/ruby/1.8/lib/ruby/1.8/i386-solaris2.11</p>
<p>4. create the following links:</p>
<p> ln -s /opt/SunStudioExpress /opt/SUNWspro<br/>
ln -s /opt/SunStudioExpress /opt/SUNWspro.40</p>
<p>5. &quot;gem install rmagick&quot; should do the trick.</p>
https://blogs.oracle.com/prashant/entry/where_s_my_ruby#comment-1213633694000Re: Where's my Ruby?Prashant Srinivasan2008-06-16T16:28:14+00:002008-06-16T16:28:14+00:00
<p>hmm . . .thats right. extconf.rb seems to call &quot;Magick-config --cflags&quot; . . . and that returns &quot;-xO3 -xarch=386 -xchip=pentium -xspace -Xa -xildoff -xc99=all -D_REENTRANT&quot; which is a hard coded value.</p>
<p>So Magick-config is what needs to be changed . . .</p>
https://blogs.oracle.com/prashant/entry/where_s_my_ruby#comment-1213630727000Re: Where's my Ruby?guest2008-06-16T15:38:47+00:002008-06-16T15:38:47+00:00
<p>I removed all instances of the flags -Xa &amp; -xc=99<br/>
from the file</p>
<p>/usr/lib/ImageMagick-6.3.4/config/configuration.xml</p>
<p>but when I do gem install rmagick,</p>
<p>I get the same error and the .log file still shows the flags Xa and xc=99.</p>
<p>I don't know where it is picking them up from.<br/>
Maybe I cannot just edit the configuration.xml file but I have to issue a command on ImageMagick.</p>
https://blogs.oracle.com/prashant/entry/where_s_my_ruby#comment-1213628513000Re: Where's my Ruby?Prashant Srinivasan2008-06-16T15:01:53+00:002008-06-16T15:01:53+00:00
<p> Your problem is related to the entries in ImageMagick's configuration.xml that point to Sun Studio compiler flags. If you don't want to remove those the &quot;-Xa&quot; and the &quot;-xc=99&quot; entries(or cannot, for some reason), then you could try the below strategy.</p>
<p>1. link /opt/sunstudioexpress to /opt/SUNWspro <br/>
2. link /opt/sunstudioexpress to /opt/SUNWspro.40<br/>
3. obtain the rbconfig.rb for Sun Studio from <a href="http://blogs.sun.com/prashant/resource/sun_studio/rbconfig.rb" rel="nofollow">http://blogs.sun.com/prashant/resource/sun_studio/rbconfig.rb</a> and replace that with your default rbconfig.rb<br/>
4. Try installing the gem again.</p>
https://blogs.oracle.com/prashant/entry/where_s_my_ruby#comment-1213627274000Re: Where's my Ruby?guest2008-06-16T14:41:14+00:002008-06-16T14:41:14+00:00
<p>Will it help if I just uninstall the package sunstudioexpress?</p>
<p>I do not know which package installed ImageMagick because I did not install it.</p>
<p>I will probably still need to fix some paths??</p>
https://blogs.oracle.com/prashant/entry/where_s_my_ruby#comment-1213626356000Re: Where's my Ruby?Prashant Srinivasan2008-06-16T14:25:56+00:002008-06-16T14:25:56+00:00
<p>It seems like ImageMagick is configured to expect the Sun Studio compiler flags, and a compiler location that does not exist. </p>
<p>gem is using gcc to compile your rmagick extension, and gcc does not recognize the -Xa and -xc99=all flags.</p>
<p>So you have two ways of proceeding, the easiest is to remove the offending flags in your ImageMagick configuration.xml and try again.</p>
<p>The more round about option is to install the Sun Studio compilers, change the paths in your ImageMagick configuration.xml to point to the correct Sun Studio location, download the rbconfig.rb for Sun Studio, and then build your gem . . .</p>
https://blogs.oracle.com/prashant/entry/where_s_my_ruby#comment-1213624346000Re: Where's my Ruby?guest2008-06-16T13:52:26+00:002008-06-16T13:52:26+00:00
<p>After I follow your instructions,<br/>
I tried to install the gem rmagick and I am getting a gcc compiler error.</p>
<p>It seems to be looking for Sun Studio gcc.</p>
<p>This is the error I get</p>
<p>&quot;/usr/sfw/bin/gcc -E -I. -I/usr/ruby/1.8/lib/ruby/1.8/i386-solaris2.11 -I. -I/usr/include -xO3 -xarch=386 -xchip=pentium -xspace -Xa -xildoff -xc99=all -D_REENTRANT conftest.c -o conftest.i&quot;<br/>
gcc: unrecognized option `-Xa'<br/>
gcc: language c99=all not recognized<br/>
gcc: conftest.c: linker input file unused because linking not done<br/>
checked program was:<br/>
/\* begin \*/<br/>
1: #include &lt;stdint.h&gt;<br/>
/\* end \*/</p>
<p>==============================</p>
<p>Checking on ImageMagick configuration:</p>
<p># convert -list configure</p>
<p>Path: /usr/lib/ImageMagick-6.3.4/config/configure.xml</p>
<p>Name Value<br/>
-------------------------------------------------------------------------------<br/>
CC /opt/SUNWspro.40/SS11/bin/cc<br/>
CFLAGS -xO3 -xarch=386 -xchip=pentium -xspace -Xa -xildoff -xc99=all -D_REENTRANT<br/>
CONFIGURE ./configure /usr/share/config.site /usr/etc/config.site<br/>
COPYRIGHT Copyright (C) 1999-2007 ImageMagick Studio LLC<br/>
CPPFLAGS -I/usr/include<br/>
CXX /opt/SUNWspro.40/SS11/bin/CC<br/>
CXXFLAGS -xO3 -D_REENTRANT<br/>
DEFS -DHAVE_CONFIG_H<br/>
DELEGATES bzlib dps fontconfig freetype jpeg png rsvg tiff x11 xml zlib<br/>
DISTCHECK_CONFIG_FLAGS 'CC=/opt/SUNWspro.40/SS11/bin/cc' 'CFLAGS=-xO3 -xarch=386 -xchip=pentium -xspace -Xa -xildoff -xc99=all ' 'CPPFLAGS=-I/usr/sfw/include -I/usr/include/libxml2 -I/usr/sfw/include/freetype2 -I/usr/sfw/include -I/usr/include/libxml2 -I/usr/sfw/include/freetype2 -I/usr/X/include/X11' 'CXX=/opt/SUNWspro.40/SS11/bin/CC' 'LDFLAGS=-L/usr/lib -L/usr/sfw/lib -L/usr/sfw/lib -L/usr/X/lib -R/usr/sfw/lib:/usr/X/lib' --disable-deprecate --with-quantum-depth=16 --with-fpx=no --with-fontpath=<br/>
EXEC-PREFIX /usr<br/>
HOST i386-pc-solaris2.11<br/>
LDFLAGS -L/usr/lib -L/usr/lib -L/usr/sfw/lib -L/usr/sfw/lib -L/usr/X/lib -R/usr/sfw/lib:/usr/X/lib -L/usr/openwin/lib -R/usr/openwin/lib -lfreetype<br/>
LIB_VERSION 0x634<br/>
LIB_VERSION_NUMBER 6,3,4,2<br/>
LIBS -lMagick -ltiff -lfreetype -ljpeg -lfontconfig -lXext -lSM -lICE -lX11 -lsocket -lnsl -lXt -lbz2 -lz -lpthread -lm -lpthread<br/>
NAME ImageMagick<br/>
PCFLAGS<br/>
PREFIX /usr<br/>
QuantumDepth 16<br/>
RELEASE_DATE 03/19/08<br/>
VERSION 6.3.4<br/>
WEBSITE <a href="http://www.imagemagick.org" rel="nofollow">http://www.imagemagick.org</a></p>
<p>====================</p>
<p>It seems to not use the SUNWgcc gcc.</p>
<p>Do I need to change my PATH to point to SUNWgcc? I do not know what to do now. Please advise.</p>
https://blogs.oracle.com/prashant/entry/where_s_my_ruby#comment-1213383039000Re: Where's my Ruby?Prashant Srinivasan2008-06-13T18:50:39+00:002008-06-13T18:50:39+00:00
<p>Gisella,</p>
<p> This should not cause you any trouble, and can be safely ignored.</p>
<p> The reference is to the environment that was used to build Ruby. This path is not used in any operation that pertains to gems or ruby package build.</p>
<p> This is an artifact of how the Ruby implementors decided to store data about the compiler that Ruby was compiled with . . . I don't believe that it is as useful in an environment where Ruby binaries are directly made available.</p>
https://blogs.oracle.com/prashant/entry/where_s_my_ruby#comment-1213372947000Re: Where's my Ruby?Gisella Saavedra2008-06-13T16:02:27+00:002008-06-13T16:02:27+00:00
<p>Prashant,</p>
<p>I have followed your instructions above.<br/>
I viewed the file<br/>
<a href="http://blogs.sun.com/prashant/resource/gcc/rbconfig.rb" rel="nofollow">http://blogs.sun.com/prashant/resource/gcc/rbconfig.rb</a><br/>
and I see references to the package /opt/SUNWspro.40</p>
<p>I do not have this package installed. What is this package part of? DO I need to install it?<br/>
I performed a search and it seems to be part of Sun Studio??</p>
<p>Any suggestions?</p>
<p>Thanks.</p>
<p>Gisella</p>
https://blogs.oracle.com/prashant/entry/where_s_my_ruby#comment-1212425034000Re: Where's my Ruby?Prashant Srinivasan2008-06-02T16:43:54+00:002008-06-02T16:43:54+00:00
<p>Tim,</p>
<p> Uttering &quot;pkg search -r ruby&quot; will bring up matches for Ruby in the OpenSolaris repository.</p>
<p>-bash-3.2# pkg search -r ruby<br/>
INDEX ACTION VALUE PACKAGE<br/>
basename dir usr/netbeans/ruby1/ruby pkg:/SUNWlibnb-ruby1@6.0.1-0.86<br/>
basename dir usr/netbeans/ruby1/ruby pkg:/SUNWlibnb-ruby1@6.0.1-0.86<br/>
basename dir usr/netbeans/ruby1/ruby pkg:/SUNWlibnb-ruby1@6.0.1-0.86<br/>
basename file usr/ruby/1.8/bin/ruby pkg:/SUNWruby18@1.8.6-0.86<br/>
basename file usr/ruby/1.8/bin/ruby pkg:/SUNWruby18@1.8.6-0.86<br/>
basename link usr/bin/ruby pkg:/SUNWruby18@1.8.6-0.79<br/>
basename dir usr/netbeans/ruby1/ruby pkg:/SUNWlibnb-ruby1@6.0.1-0.86</p>
https://blogs.oracle.com/prashant/entry/where_s_my_ruby#comment-1212420361000Re: Where's my Ruby?Tim2008-06-02T15:26:01+00:002008-06-02T15:26:01+00:00
<p>What is the command that you use to discover that the package name is &quot;SUNWruby18&quot;? </p>
https://blogs.oracle.com/prashant/entry/dtrace_support1#comment-1211550702000Re: How to install Mongrel, Mysql, and Postgres gems in OpenSolaris Ruby -Mirage2008-05-23T13:51:42+00:002008-05-23T13:51:42+00:00
<p>Thanks for this post. </p>
<p>Since you're doing solaris / ruby, I figured I'd ask my question. I'm running sol10 sparc on a T1000.</p>
<p>I have an issue with rubygems where it just takes forever to run! If I truss the &quot;gem install rails&quot; process, I get something like this:</p>
<p>(lots of getcontext)<br/>
/1: getcontext(0xFFBCD9F0)<br/>
/1: getcontext(0xFFBCCF98)<br/>
/1: getcontext(0xFFBCC950)<br/>
/1: getcontext(0xFFBCC950)<br/>
/1: getcontext(0xFFBCD620)<br/>
/1: getcontext(0xFFBCD618)<br/>
/1: getcontext(0xFFBCD9F0)<br/>
/1: getcontext(0xFFBCCF98)<br/>
/1: getcontext(0xFFBCC950)<br/>
\^C/2: nanosleep(0xFEB7BF88, 0xFEB7BF80) = 0</p>
<p>If you've seen this before, how did you solve the issue?</p>
<p>I've tried compiling from source, installing from various binaries, but no luck in clearing this particular issue.</p>
<p>Thanks in advance,</p>
<p>Jeff</p>