<p>When compiling from source, I never know which configure flags to use to optimize the compilation for my environment. Assume the following hardware/OS:</p>

<ul>
<li>Single Core, 2 GHz Intel</li>
<li>512MB Ram</li>
<li>Debian 4</li>
</ul>

<p>I usually just go with </p>

<p><code>./configure --prefix=/usr/local</code></p>

<p>Should I be doing anything else?</p>

[{'answer_id': 23645, 'author': 'Louis Salin', 'author_id': 160, 'author_profile': 'https://Stackoverflow.com/users/160', 'pm_score': 0, 'selected': False, 'text': '<p>You might want to check those few options out, which may be required by a Ruby On Rails environment, in which case they should be compiled. Just make sure the directory corresponds to your current settings.</p>\n\n<p>--with-openssl-dir=/usr --with-readline-dir=/usr --with-zlib-dir=/usr</p>\n'}, {'answer_id': 38583, 'author': 'wvdschel', 'author_id': 2018, 'author_profile': 'https://Stackoverflow.com/users/2018', 'pm_score': 0, 'selected': False, 'text': "<p>I recommend mixing in a few packages from Debian Unstable feeds. They tend to be pretty stable, despite the name. They're also very up to date.</p>\n"}, {'answer_id': 201785, 'author': 'Vitalie', 'author_id': 27913, 'author_profile': 'https://Stackoverflow.com/users/27913', 'pm_score': 1, 'selected': False, 'text': '<p>I always use Debian packages. Compiling from sources can break your development environment during libraries conflicts and such problems are hard to detect.</p>\n'}]
['https://Stackoverflow.com/questions/23623', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/2476/']