mirror of
https://gitlab.com/siarp/siarp.de.git
synced 2026-08-07 19:18:17 +00:00
f028f14803
`find . -name "*.html" -type f -print0 | xargs -0 perl -i -pe 's/<link rel="(canonical|shortlink)" href=".+?" \/>//g'`
154 lines
9.6 KiB
HTML
154 lines
9.6 KiB
HTML
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.0//EN"
|
|
"http://www.w3.org/MarkUp/DTD/xhtml-rdfa-1.dtd">
|
|
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" version="XHTML+RDFa 1.0" dir="ltr">
|
|
|
|
|
|
<!-- Mirrored from siarp.de/node/135 by HTTrack Website Copier/3.x [XR&CO'2014], Sun, 08 Dec 2019 12:01:20 GMT -->
|
|
<!-- Added by HTTrack --><meta http-equiv="content-type" content="text/html;charset=utf-8" /><!-- /Added by HTTrack -->
|
|
<head profile="http://www.w3.org/1999/xhtml/vocab">
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
|
<meta name="Generator" content="Drupal 7 (http://drupal.org)" />
|
|
|
|
|
|
<title>Plone: Entwicklungsumgebung Mac | siarp.de</title>
|
|
<link type="text/css" rel="stylesheet" href="../../sites/siarp.de/files/css/css_xE-rWrJf-fncB6ztZfd2huxqgxu4WO-qwma6Xer30m4.css" media="all" />
|
|
<link type="text/css" rel="stylesheet" href="../../sites/siarp.de/files/css/css_NdVgz6YKifxQUEsW5xls_zI7Pn2F7E5U5Wb29zcu3vo.css" media="all" />
|
|
<link type="text/css" rel="stylesheet" href="../../sites/siarp.de/files/css/css_OAqUol8y_hmU_lCucLyaRX-a1G627sWWbvG_VG1GKnE.css" media="all" />
|
|
<link type="text/css" rel="stylesheet" href="../../sites/siarp.de/files/css/css_xPIRNNJGw8EiKyuE5b-xAtWWTQ8U1_huTr4xL09Dq2A.css" media="all" />
|
|
<link type="text/css" rel="stylesheet" href="../../sites/siarp.de/files/css/css_k3snrbsthqot7V7ccRZHS9OkCZkwBv4adtNieIVlbEU.css" media="print" />
|
|
|
|
<!--[if lt IE 7]>
|
|
<link type="text/css" rel="stylesheet" href="http://siarp.de/themes/garland/fix-ie.css?q26w7t" media="all" />
|
|
<![endif]-->
|
|
<script type="text/javascript" src="../../sites/siarp.de/files/js/js_qikmINIYTWe4jcTUn8cKiMr8bmSDiZB9LQqvceZ6wlM.js"></script>
|
|
<script type="text/javascript">
|
|
<!--//--><![CDATA[//><!--
|
|
jQuery.extend(Drupal.settings, {"basePath":"\/","pathPrefix":"","ajaxPageState":{"theme":"garland","theme_token":"iKGE4Xvd6W-NVuWa7Rrzi_DBX_5V5x5m6IZrmrmoqYU","js":{"misc\/jquery.js":1,"misc\/jquery-extend-3.4.0.js":1,"misc\/jquery.once.js":1,"misc\/drupal.js":1},"css":{"modules\/system\/system.base.css":1,"modules\/system\/system.menus.css":1,"modules\/system\/system.messages.css":1,"modules\/system\/system.theme.css":1,"modules\/comment\/comment.css":1,"modules\/field\/theme\/field.css":1,"modules\/node\/node.css":1,"modules\/user\/user.css":1,"sites\/all\/modules\/views\/css\/views.css":1,"sites\/all\/modules\/ctools\/css\/ctools.css":1,"public:\/\/geshi\/geshifilter-languages.css":1,"sites\/siarp.de\/modules\/geshifilter\/geshifilter.css":1,"themes\/garland\/style.css":1,"themes\/garland\/print.css":1,"themes\/garland\/fix-ie.css":1}}});
|
|
//--><!]]>
|
|
</script>
|
|
</head>
|
|
<body class="html not-front not-logged-in one-sidebar sidebar-second page-node page-node- page-node-135 node-type-story fluid-width" >
|
|
<div id="skip-link">
|
|
<a href="#main-content" class="element-invisible element-focusable">Skip to main content</a>
|
|
</div>
|
|
|
|
<div id="wrapper">
|
|
<div id="container" class="clearfix">
|
|
|
|
<div id="header">
|
|
<div id="logo-floater">
|
|
<div id="branding"><strong><a href="../../">
|
|
<span>siarp.de</span> </a></strong></div>
|
|
</div>
|
|
|
|
</div> <!-- /#header -->
|
|
|
|
|
|
<div id="center"><div id="squeeze"><div class="right-corner"><div class="left-corner">
|
|
<h2 class="element-invisible">You are here</h2><div class="breadcrumb"><a href="../../">Home</a></div> <a id="main-content"></a>
|
|
<div id="tabs-wrapper" class="clearfix"> <h1 class="with-tabs">Plone: Entwicklungsumgebung Mac</h1>
|
|
</div> <div class="clearfix">
|
|
<div class="region region-content">
|
|
<div id="block-system-main" class="block block-system clearfix">
|
|
|
|
|
|
<div class="content">
|
|
<div id="node-135" class="node node-story node-promoted">
|
|
|
|
|
|
|
|
<span class="submitted">17. October 2007 - 16:39 — <span class="username">Martin</span></span>
|
|
|
|
<div class="content clearfix">
|
|
<div class="field field-name-body field-type-text-with-summary field-label-hidden"><div class="field-items"><div class="field-item even"><h3>10.4 Tiger</h3>
|
|
|
|
<p>Dem Buch "Professional Plone Development" von Martin Aspeli folgend, soll nicht auf einen fertigen Installer zurückgegriffen werden. Ein automatisierter Build-Out Prozess soll möglich sein.</p>
|
|
|
|
<p>OS X 10.4.10 liefert zwar Python 2.4 mit, es fehlt aber z.B. ein Wrapper für die libxml2. Um nicht unnötig im System rumzufummeln, soll MacPorts verwendet werden:</p>
|
|
|
|
<p><div class="geshifilter"><div class="text geshifilter-text">$ sudo port install python24 py-libxml2 py-elementtree py-pil</div></div></p>
|
|
|
|
<p>MacPorts' Python-Packages werden in <span class="geshifilter"><code class="text geshifilter-text">/opt/local/lib/python2.4/site-packages</code></span> installiert. Irgendwo ist allerding <span class="geshifilter"><code class="text geshifilter-text">/opt/local/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages</code></span> als Installationspfad für reine Python-Packages angegeben.</p>
|
|
|
|
<p>Um nun Python-Packages installieren zu können, ohne in MacPorts-Installationspfade einzugreifen, werden wir ein virtuelles Python im home-Verzeichnis erstellen (<a href="http://peak.telecommunity.com/DevCenter/EasyInstall#creating-a-virtual-python" rel="nofollow">http://peak.telecommunity.com/DevCenter/EasyInstall#creating-a-virtual-python</a>). Anders als beschrieben funktioniert das mit dem Installationspfad aber nicht automatisch (vermutlich wegen dem "irgendwo angegebenen" Pfad). Im Verzeichnis <span class="geshifilter"><code class="text geshifilter-text">~/lib/python2.4/site-packages</code></span> werden <span class="geshifilter"><code class="text geshifilter-text">.pth</code></span>-Dateien nicht ausgewertet. Es muss dieses Verzeicnis im <span class="geshifilter"><code class="text geshifilter-text">$PYTHONPATH</code></span> angegeben sein.</p>
|
|
|
|
<p>In <span class="geshifilter"><code class="text geshifilter-text">~/.profile</code></span>:<br />
|
|
<div class="geshifilter"><div class="text geshifilter-text">export PYTHONPATH=~/lib/python2.4/site-packages:$PYTHONPATH</div></div></p>
|
|
|
|
<p>Bei jeder Installation im virtuellen Python muss jetzt auch noch das Präfix angegeben werden:</p>
|
|
|
|
<p><div class="geshifilter"><div class="text geshifilter-text">$ ~/bin/python ez_setup.py --prefix=~</div></div></p>
|
|
|
|
<p>bzw.</p>
|
|
|
|
<p><div class="geshifilter"><div class="text geshifilter-text">$ ~/bin/easy_setup --prefix=~ ZopeSkel</div></div></p>
|
|
|
|
<hr />
|
|
|
|
<p>Mit dem Befehl</p>
|
|
|
|
<p><div class="geshifilter"><div class="text geshifilter-text">$ ./bin/instance fg</div></div></p>
|
|
|
|
<p>soll der Server automatisch im Debug-Modus gestartet werden. Das ist bei mir aber nicht der Fall. Beim Buildout oder In der <span class="geshifilter"><code class="text geshifilter-text">buildout.cfg</code></span> muss explixit der Modus angegeben werden, was dann in die <span class="geshifilter"><code class="text geshifilter-text">zope.cfg</code></span> übernommen wird.</p>
|
|
|
|
<p>Möglicher Weise liegt es daran, dass <span class="geshifilter"><code class="text geshifilter-text">parts/instance/bin/runzope</code></span> statt <span class="geshifilter"><code class="text geshifilter-text">parts/instance/bin/zopectl</code></span> ausgefürt wird (<a href="http://www.nabble.com/Foreground,-but-not-debug.-t2287152.html" rel="nofollow">http://www.nabble.com/Foreground,-but-not-debug.-t2287152.html</a>).</p>
|
|
|
|
<h3>10.5 Leopard (Ergänzungen)</h3>
|
|
|
|
<p>Python 2.4 muss mit MacPorts installiert werden. Leopard bringt nur 2.5 mit. Die Variante "puredarwin" verhindert die Erstellung eines Frameworks (s. Beschreibung Tiger).</p>
|
|
|
|
<p><span class="geshifilter"><code class="text geshifilter-text">sudo port install python24 +puredarwin</code></span></p>
|
|
|
|
<p>Alle weiteren Python-Pakete müssen dann auch mit der Variante "puredarwin" installiert werden.</p>
|
|
|
|
<p>Mit dem Paket "py-setuptools" wird auch gleich das Skript "easy_install" installiert.</p>
|
|
|
|
<p>Dann noch "py-pil" und "py-elementtree"...</p>
|
|
|
|
<p><span class="geshifilter"><code class="text geshifilter-text">sudo easy_install ZopeSkel</code></span></p>
|
|
|
|
<p>Und am Ende doch noch ein virtuelles Python in <span class="geshifilter"><code class="text geshifilter-text">~/bin/</code></span> installiert, um den komplizierten Pfad <span class="geshifilter"><code class="text geshifilter-text">/opt/local/bin/python2.4</code></span> zu vereinfachen und vielleicht doch mal nur hier etwas zu installieren.</p></div></div></div> </div>
|
|
|
|
<div class="clearfix">
|
|
<div class="links"><ul class="links inline"><li class="comment_forbidden first last"></li>
|
|
</ul></div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="region region-footer">
|
|
<div id="block-block-3" class="block block-block clearfix">
|
|
|
|
|
|
<div class="content">
|
|
<p>Alle Rechte liegen bei siarp.</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div></div></div></div> <!-- /.left-corner, /.right-corner, /#squeeze, /#center -->
|
|
|
|
<div id="sidebar-second" class="sidebar">
|
|
<div class="region region-sidebar-second">
|
|
<div id="block-menu-menu-autoren" class="block block-menu clearfix">
|
|
|
|
<h2 class="title">Written by</h2>
|
|
|
|
<div class="content">
|
|
<ul class="menu"><li class="first leaf"><a href="../../blog/2/">Martin</a></li>
|
|
<li class="last leaf"><a href="../../blog/3/">Tilman</a></li>
|
|
</ul> </div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
</div> <!-- /#container -->
|
|
</div> <!-- /#wrapper -->
|
|
</body>
|
|
|
|
<!-- Mirrored from siarp.de/node/135 by HTTrack Website Copier/3.x [XR&CO'2014], Sun, 08 Dec 2019 12:01:20 GMT -->
|
|
</html>
|