---
slug: "CentOS5.9に、Redmineを入れようとしたらRMagickが入らない→sudoではなくsu-"
title: "When Trying to Install Redmine on CentOS 5.9, RMagick Fails to Install → Use su - Instead of sudo"
description: "\n\nI tried to install Redmine on Cent OS 5.9."
url: "https://www.ytyng.com/en/blog/CentOS5.9に、Redmineを入れようとしたらRMagickが入らない→sudoではなくsu-"
publish_date: "2014-04-07T09:49:03Z"
created: "2014-04-07T09:49:03Z"
updated: "2026-02-27T10:42:54.120Z"
categories: ["Linux"]
keywords: ""
featured_image_url: "https://media.ytyng.com/resize/20230812/4fef29e810664cf792955752bbc2bd37.png.webp?width=768"
has_video: false
has_music: false
video_urls: []
music_urls: []
lang: "en"
---

# When Trying to Install Redmine on CentOS 5.9, RMagick Fails to Install → Use su - Instead of sudo

<div class="document">

<p>I tried to install Redmine on Cent OS 5.9.</p>
<pre class="literal-block">*** extconf.rb failed ***

gem install rmagick -v '2.13.2'
</pre>
<p>I forgot to capture the error message, but using sudo gem install rmagick -v '2.13.2' failed.</p>
<p>→ Instead of using sudo, I switched to the superuser with su - and then,</p>
<pre class="literal-block"># gem install rmagick -v '2.13.2'
</pre>
<p>the installation went smoothly.</p>
<p>I was stuck for quite a while...</p>
<p>On Redhat-based systems, it's better not to use sudo! I should have followed the proper conventions.</p>
</div>
