<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: My Zenoss Development Environment &#8211; Part 1</title>
	<atom:link href="http://blog.nuclearbunny.org/2009/10/22/my-zenoss-development-environment-part-1/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.nuclearbunny.org/2009/10/22/my-zenoss-development-environment-part-1/</link>
	<description></description>
	<lastBuildDate>Fri, 30 Dec 2011 19:10:01 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
	<item>
		<title>By: davetoo</title>
		<link>http://blog.nuclearbunny.org/2009/10/22/my-zenoss-development-environment-part-1/comment-page-1/#comment-459</link>
		<dc:creator>davetoo</dc:creator>
		<pubDate>Wed, 14 Apr 2010 04:56:42 +0000</pubDate>
		<guid isPermaLink="false">http://blog.nuclearbunny.org/?p=469#comment-459</guid>
		<description>bash-3.2$ svn info
...
URL: http://dev.zenoss.org/svn/tags/zenoss-2.4.2/inst</description>
		<content:encoded><![CDATA[<p>bash-3.2$ svn info<br />
&#8230;<br />
URL: <a href="http://dev.zenoss.org/svn/tags/zenoss-2.4.2/inst" rel="nofollow">http://dev.zenoss.org/svn/tags/zenoss-2.4.2/inst</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: chadwick</title>
		<link>http://blog.nuclearbunny.org/2009/10/22/my-zenoss-development-environment-part-1/comment-page-1/#comment-457</link>
		<dc:creator>chadwick</dc:creator>
		<pubDate>Wed, 14 Apr 2010 00:41:14 +0000</pubDate>
		<guid isPermaLink="false">http://blog.nuclearbunny.org/?p=469#comment-457</guid>
		<description>So are you building from source, and are you using trunk or another version like 2.4.x or 2.5.x?

Trunk source builds are a little funky right now and are under great-flux as we move to the new version of Python and Zope...</description>
		<content:encoded><![CDATA[<p>So are you building from source, and are you using trunk or another version like 2.4.x or 2.5.x?</p>
<p>Trunk source builds are a little funky right now and are under great-flux as we move to the new version of Python and Zope&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: davetoo</title>
		<link>http://blog.nuclearbunny.org/2009/10/22/my-zenoss-development-environment-part-1/comment-page-1/#comment-456</link>
		<dc:creator>davetoo</dc:creator>
		<pubDate>Wed, 14 Apr 2010 00:39:45 +0000</pubDate>
		<guid isPermaLink="false">http://blog.nuclearbunny.org/?p=469#comment-456</guid>
		<description>So I&#039;m not sure what steps I missed, but I ended up with an install with only Zenoss components in $ZENHOME/Products, and I had to execute a separate step to check that directory out from svn and then re-run part of the post-install config process.  I don&#039;t know if this happened because I was installing as a nonstandard user into a nonstandard place, or there are some steps missing from the build-from-svn process.  I suspect the latter, actually.</description>
		<content:encoded><![CDATA[<p>So I&#8217;m not sure what steps I missed, but I ended up with an install with only Zenoss components in $ZENHOME/Products, and I had to execute a separate step to check that directory out from svn and then re-run part of the post-install config process.  I don&#8217;t know if this happened because I was installing as a nonstandard user into a nonstandard place, or there are some steps missing from the build-from-svn process.  I suspect the latter, actually.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: davetoo</title>
		<link>http://blog.nuclearbunny.org/2009/10/22/my-zenoss-development-environment-part-1/comment-page-1/#comment-455</link>
		<dc:creator>davetoo</dc:creator>
		<pubDate>Tue, 13 Apr 2010 23:22:24 +0000</pubDate>
		<guid isPermaLink="false">http://blog.nuclearbunny.org/?p=469#comment-455</guid>
		<description>I also had to install mysql-devel (RHEL 5.5).

So I did the build/install as described above but it defaulted to username &#039;zenoss&#039;; it looks like we might need to patch build-functions.sh.  I was trying to figure out how to recover from that without doing another hour-long build, but I have up and hardcoded my username in build-functions.sh and install-functions.sh.</description>
		<content:encoded><![CDATA[<p>I also had to install mysql-devel (RHEL 5.5).</p>
<p>So I did the build/install as described above but it defaulted to username &#8216;zenoss&#8217;; it looks like we might need to patch build-functions.sh.  I was trying to figure out how to recover from that without doing another hour-long build, but I have up and hardcoded my username in build-functions.sh and install-functions.sh.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: chadwick</title>
		<link>http://blog.nuclearbunny.org/2009/10/22/my-zenoss-development-environment-part-1/comment-page-1/#comment-454</link>
		<dc:creator>chadwick</dc:creator>
		<pubDate>Tue, 13 Apr 2010 13:25:07 +0000</pubDate>
		<guid isPermaLink="false">http://blog.nuclearbunny.org/?p=469#comment-454</guid>
		<description>Yep, everything in my dev environment is always being run as my local user. I usually maintain a trunk version and two older versions in separate directories for support. For the MySQL database, I just name the database something like events25 or events24 to keep them separate from one another.</description>
		<content:encoded><![CDATA[<p>Yep, everything in my dev environment is always being run as my local user. I usually maintain a trunk version and two older versions in separate directories for support. For the MySQL database, I just name the database something like events25 or events24 to keep them separate from one another.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: davetoo</title>
		<link>http://blog.nuclearbunny.org/2009/10/22/my-zenoss-development-environment-part-1/comment-page-1/#comment-453</link>
		<dc:creator>davetoo</dc:creator>
		<pubDate>Tue, 13 Apr 2010 08:06:30 +0000</pubDate>
		<guid isPermaLink="false">http://blog.nuclearbunny.org/?p=469#comment-453</guid>
		<description>So this is not running as user &#039;zenoss&#039; but your usual login?  

Do you maintain environments for multiple Zenoss versions/instances?  e.g. for sustaining/backports?   How do you deal with mysql if so?</description>
		<content:encoded><![CDATA[<p>So this is not running as user &#8216;zenoss&#8217; but your usual login?  </p>
<p>Do you maintain environments for multiple Zenoss versions/instances?  e.g. for sustaining/backports?   How do you deal with mysql if so?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: chadwick</title>
		<link>http://blog.nuclearbunny.org/2009/10/22/my-zenoss-development-environment-part-1/comment-page-1/#comment-445</link>
		<dc:creator>chadwick</dc:creator>
		<pubDate>Fri, 26 Mar 2010 15:20:38 +0000</pubDate>
		<guid isPermaLink="false">http://blog.nuclearbunny.org/?p=469#comment-445</guid>
		<description>&lt;a href=&quot;#comment-444&quot; rel=&quot;nofollow&quot;&gt;@Matthew &lt;/a&gt; For reference, we&#039;re working on a native build for Snow Leopard and the trunk version of Zenoss right now. It&#039;s using Python 2.6 so the build issues are going away... real soon now.</description>
		<content:encoded><![CDATA[<p><a href="#comment-444" rel="nofollow">@Matthew </a> For reference, we&#8217;re working on a native build for Snow Leopard and the trunk version of Zenoss right now. It&#8217;s using Python 2.6 so the build issues are going away&#8230; real soon now.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matthew</title>
		<link>http://blog.nuclearbunny.org/2009/10/22/my-zenoss-development-environment-part-1/comment-page-1/#comment-444</link>
		<dc:creator>Matthew</dc:creator>
		<pubDate>Thu, 25 Mar 2010 18:11:24 +0000</pubDate>
		<guid isPermaLink="false">http://blog.nuclearbunny.org/?p=469#comment-444</guid>
		<description>Fabulous, thank you.  In general, I appreciate Apple&#039;s innovation, and how willing they are to depart from the past (sacrificing backwards compatibility) in order to move technology forward.  However, this isn&#039;t one of those times...  : )</description>
		<content:encoded><![CDATA[<p>Fabulous, thank you.  In general, I appreciate Apple&#8217;s innovation, and how willing they are to depart from the past (sacrificing backwards compatibility) in order to move technology forward.  However, this isn&#8217;t one of those times&#8230;  : )</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: chadwick</title>
		<link>http://blog.nuclearbunny.org/2009/10/22/my-zenoss-development-environment-part-1/comment-page-1/#comment-443</link>
		<dc:creator>chadwick</dc:creator>
		<pubDate>Thu, 25 Mar 2010 13:43:07 +0000</pubDate>
		<guid isPermaLink="false">http://blog.nuclearbunny.org/?p=469#comment-443</guid>
		<description>One of our developers came up with a work-around that uses the stack installer to provide the binaries and then you can customize that to make a development environment out of it, as described below:


1. Download the latest BitRock stack (core) from http://www.zenoss.com such as http://downloads.sourceforge.net/zenoss/zenoss-stack-2.5.2.app.tar.gz
2. Install it to, say, /Users/ian/zenoss. Unless your name is ian, I suggest you do not copy/paste this path.
3. Don&#039;t launch it yet
4. Shut down the mysql daemon that was started by the installer:

    $ ps aux &#124; grep $ZENDIR/mysql &#124; awk &#039;{print $2}&#039; &#124; sudo xargs kill

5. Run this:

    $ export ZENDIR=/Users/ian/zenoss
    $ export ZENUSR=ian # Again, probably not a copy/paste candidate here
    $ sudo chown -R $ZENUSR $ZENDIR/mysql/data/events
    $ find $ZENDIR -user zenoss &#124; sudo xargs chown $ZENUSR:staff
    $ find $ZENDIR/mysql -user root -o -user _mysql &#124; sudo xargs chown $ZENUSR

6. Assuming you have a checkout of Zenoss trunk in ~/src/core, do:

   $ rm -rf $ZENDIR/zenoss/Products &amp;&amp; ln -s ~/src/core/Products $ZENDIR/zenoss/Products

7. Edit ~/.bashrc (or ~/.profile, if .bashrc isn&#039;t sourced in .profile) and add:

   export PATH=$PATH:/Users/ian/zenoss/zenoss/bin

 To make life a little easier, can also add:

   export ZENHOME=/Users/ian/zenoss/zenoss
   alias cdp=cd $ZENHOME/Products
   alias cdz=cd $ZENHOME
   alias zpy=$ZENHOME/bin/python

8. Make a few changes to $ZENHOME/etc/zope.conf. Find &quot;effective-user zenoss&quot; (line 153) and change it to:

   effective-user ian

  Then find &quot;# debug-mode on&quot; (line 138) and uncomment it.

9. Get mysql into your path:

   $ ln -s $ZENDIR/mysql/scripts/ctl.sh $ZENDIR/zenoss/bin/zenmysqld
   $ ln -s $ZENDIR/mysql/bin/mysql $ZENDIR/zenoss/bin/zenmysql

C&#039;est ça. Should now be able to start up mysql:

  $ zenmysqld start

Then ZEO, and run Zope in the foreground with debug output:

   $ zeoctl start
   $ runzope</description>
		<content:encoded><![CDATA[<p>One of our developers came up with a work-around that uses the stack installer to provide the binaries and then you can customize that to make a development environment out of it, as described below:</p>
<p>1. Download the latest BitRock stack (core) from <a href="http://www.zenoss.com" rel="nofollow">http://www.zenoss.com</a> such as <a href="http://downloads.sourceforge.net/zenoss/zenoss-stack-2.5.2.app.tar.gz" rel="nofollow">http://downloads.sourceforge.net/zenoss/zenoss-stack-2.5.2.app.tar.gz</a><br />
2. Install it to, say, /Users/ian/zenoss. Unless your name is ian, I suggest you do not copy/paste this path.<br />
3. Don&#8217;t launch it yet<br />
4. Shut down the mysql daemon that was started by the installer:</p>
<p>    $ ps aux | grep $ZENDIR/mysql | awk &#8216;{print $2}&#8217; | sudo xargs kill</p>
<p>5. Run this:</p>
<p>    $ export ZENDIR=/Users/ian/zenoss<br />
    $ export ZENUSR=ian # Again, probably not a copy/paste candidate here<br />
    $ sudo chown -R $ZENUSR $ZENDIR/mysql/data/events<br />
    $ find $ZENDIR -user zenoss | sudo xargs chown $ZENUSR:staff<br />
    $ find $ZENDIR/mysql -user root -o -user _mysql | sudo xargs chown $ZENUSR</p>
<p>6. Assuming you have a checkout of Zenoss trunk in ~/src/core, do:</p>
<p>   $ rm -rf $ZENDIR/zenoss/Products &amp;&amp; ln -s ~/src/core/Products $ZENDIR/zenoss/Products</p>
<p>7. Edit ~/.bashrc (or ~/.profile, if .bashrc isn&#8217;t sourced in .profile) and add:</p>
<p>   export PATH=$PATH:/Users/ian/zenoss/zenoss/bin</p>
<p> To make life a little easier, can also add:</p>
<p>   export ZENHOME=/Users/ian/zenoss/zenoss<br />
   alias cdp=cd $ZENHOME/Products<br />
   alias cdz=cd $ZENHOME<br />
   alias zpy=$ZENHOME/bin/python</p>
<p>8. Make a few changes to $ZENHOME/etc/zope.conf. Find &#8220;effective-user zenoss&#8221; (line 153) and change it to:</p>
<p>   effective-user ian</p>
<p>  Then find &#8220;# debug-mode on&#8221; (line 138) and uncomment it.</p>
<p>9. Get mysql into your path:</p>
<p>   $ ln -s $ZENDIR/mysql/scripts/ctl.sh $ZENDIR/zenoss/bin/zenmysqld<br />
   $ ln -s $ZENDIR/mysql/bin/mysql $ZENDIR/zenoss/bin/zenmysql</p>
<p>C&#8217;est ça. Should now be able to start up mysql:</p>
<p>  $ zenmysqld start</p>
<p>Then ZEO, and run Zope in the foreground with debug output:</p>
<p>   $ zeoctl start<br />
   $ runzope</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matthew</title>
		<link>http://blog.nuclearbunny.org/2009/10/22/my-zenoss-development-environment-part-1/comment-page-1/#comment-442</link>
		<dc:creator>Matthew</dc:creator>
		<pubDate>Thu, 25 Mar 2010 03:58:40 +0000</pubDate>
		<guid isPermaLink="false">http://blog.nuclearbunny.org/?p=469#comment-442</guid>
		<description>Thank you for this post.  Do you have the actual workaround mentioned here, for building Zenoss on Snow Leopard?</description>
		<content:encoded><![CDATA[<p>Thank you for this post.  Do you have the actual workaround mentioned here, for building Zenoss on Snow Leopard?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

