<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>설치 오류 &#8211; WONIZZ.LOG</title>
	<atom:link href="https://blog.wonizz.com/tag/%ec%84%a4%ec%b9%98-%ec%98%a4%eb%a5%98/feed/" rel="self" type="application/rss+xml" />
	<link>https://blog.wonizz.com</link>
	<description>AI 자동화를 직접 굴려 본 개발자의 실무 교훈</description>
	<lastBuildDate>Tue, 13 Oct 2026 23:03:39 +0000</lastBuildDate>
	<language>ko-KR</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.0.2</generator>

<image>
	<url>https://i0.wp.com/blog.wonizz.com/wp-content/uploads/2026/08/wz-siteicon-512.png?fit=32%2C32&#038;ssl=1</url>
	<title>설치 오류 &#8211; WONIZZ.LOG</title>
	<link>https://blog.wonizz.com</link>
	<width>32</width>
	<height>32</height>
</image> 
<site xmlns="com-wordpress:feed-additions:1">152411368</site>	<item>
		<title>[AI 코딩] 클로드 코드 설치 오류, 깔았는데 명령을 못 찾은 일</title>
		<link>https://blog.wonizz.com/2026/10/14/claude-code-install-errors/</link>
					<comments>https://blog.wonizz.com/2026/10/14/claude-code-install-errors/#respond</comments>
		
		<dc:creator><![CDATA[워니즈]]></dc:creator>
		<pubDate>Tue, 13 Oct 2026 23:03:39 +0000</pubDate>
				<category><![CDATA[AI & LLM]]></category>
		<category><![CDATA[claude doctor]]></category>
		<category><![CDATA[PATH]]></category>
		<category><![CDATA[설치 오류]]></category>
		<category><![CDATA[클로드 코드]]></category>
		<guid isPermaLink="false">https://blog.wonizz.com/?p=4030</guid>

					<description><![CDATA[<p>The standard Lorem Ipsum passage, used since the 1500s<br />
"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."</p>
<p>Section 1.10.32 of "de Finibus Bonorum et Malorum", written by Cicero in 45 BC<br />
"Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt. Neque porro quisquam est, qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit, sed quia non numquam eius modi tempora incidunt ut labore et dolore magnam aliquam quaerat voluptatem. Ut enim ad minima veniam, quis nostrum exercitationem ullam corporis suscipit laboriosam, nisi ut aliquid ex ea commodi consequatur? Quis autem vel eum iure reprehenderit qui in ea voluptate velit esse quam nihil molestiae consequatur, vel illum qui dolorem eum fugiat quo voluptas nulla pariatur?"</p>
<p>1914 translation by H. Rackham<br />
"But I must explain to you how all this mistaken idea of denouncing pleasure and praising pain was born and I will give you a complete account of the system, and expound the actual teachings of the great explorer of the truth, the master-builder of human happiness. No one rejects, dislikes, or avoids pleasure itself, because it is pleasure, but because those who do not know how to pursue pleasure rationally encounter consequences that are extremely painful. Nor again is there anyone who loves or pursues or desires to obtain pain of itself, because it is pain, but because occasionally circumstances occur in which toil and pain can procure him some great pleasure. To take a trivial example, which of us ever undertakes laborious physical exercise, except to obtain some advantage from it? But who has any right to find fault with a man who chooses to enjoy a pleasure that has no annoying consequences, or one who avoids a pain that produces no resultant pleasure?"</p>
<p>Section 1.10.33 of "de Finibus Bonorum et Malorum", written by Cicero in 45 BC<br />
"At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident, similique sunt in culpa qui officia deserunt mollitia animi, id est laborum et dolorum fuga. Et harum quidem rerum facilis est et expedita distinctio. Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus id quod maxime placeat facere possimus, omnis voluptas assumenda est, omnis dolor repellendus. Temporibus autem quibusdam et aut officiis debitis aut rerum necessitatibus saepe eveniet ut et voluptates repudiandae sint et molestiae non recusandae. Itaque earum rerum hic tenetur a sapiente delectus, ut aut reiciendis voluptatibus maiores alias consequatur aut perferendis doloribus asperiores repellat."</p>
<p>1914 translation by H. Rackham<br />
"On the other hand, we denounce with righteous indignation and dislike men who are so beguiled and demoralized by the charms of pleasure of the moment, so blinded by desire, that they cannot foresee the pain and trouble that are bound to ensue; and equal blame belongs to those who fail in their duty through weakness of will, which is the same as saying through shrinking from toil and pain. These cases are perfectly simple and easy to distinguish. In a free hour, when our power of choice is untrammelled and when nothing prevents our being able to do what we like best, every pleasure is to be welcomed and every pain avoided. But in certain circumstances and owing to the claims of duty or the obligations of business it will frequently occur that pleasures have to be repudiated and annoyances accepted. The wise man therefore always holds in these matters to this principle of selection: he rejects pleasures to secure other greater pleasures, or else he endures pains to avoid worse pains."</p>
<p>클로드 코드 설치 오류를 빈 HOME 에서 공식 설치 스크립트로 직접 재현했습니다. 설치 성공 뒤 command not found, .zshrc 에 PATH 를 넣어도 비대화형 셸에서 나는 127, 절대 경로와 claude doctor 로 확인하는 방법을 원문 출력 그대로 정리했습니다.</p>
<p>The post <a rel="nofollow" href="https://blog.wonizz.com/2026/10/14/claude-code-install-errors/">[AI 코딩] 클로드 코드 설치 오류, 깔았는데 명령을 못 찾은 일</a> appeared first on <a rel="nofollow" href="https://blog.wonizz.com">WONIZZ.LOG</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>The standard Lorem Ipsum passage, used since the 1500s<br />
"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."</p>
<p>Section 1.10.32 of "de Finibus Bonorum et Malorum", written by Cicero in 45 BC<br />
"Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt. Neque porro quisquam est, qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit, sed quia non numquam eius modi tempora incidunt ut labore et dolore magnam aliquam quaerat voluptatem. Ut enim ad minima veniam, quis nostrum exercitationem ullam corporis suscipit laboriosam, nisi ut aliquid ex ea commodi consequatur? Quis autem vel eum iure reprehenderit qui in ea voluptate velit esse quam nihil molestiae consequatur, vel illum qui dolorem eum fugiat quo voluptas nulla pariatur?"</p>
<p>1914 translation by H. Rackham<br />
"But I must explain to you how all this mistaken idea of denouncing pleasure and praising pain was born and I will give you a complete account of the system, and expound the actual teachings of the great explorer of the truth, the master-builder of human happiness. No one rejects, dislikes, or avoids pleasure itself, because it is pleasure, but because those who do not know how to pursue pleasure rationally encounter consequences that are extremely painful. Nor again is there anyone who loves or pursues or desires to obtain pain of itself, because it is pain, but because occasionally circumstances occur in which toil and pain can procure him some great pleasure. To take a trivial example, which of us ever undertakes laborious physical exercise, except to obtain some advantage from it? But who has any right to find fault with a man who chooses to enjoy a pleasure that has no annoying consequences, or one who avoids a pain that produces no resultant pleasure?"</p>
<p>Section 1.10.33 of "de Finibus Bonorum et Malorum", written by Cicero in 45 BC<br />
"At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident, similique sunt in culpa qui officia deserunt mollitia animi, id est laborum et dolorum fuga. Et harum quidem rerum facilis est et expedita distinctio. Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus id quod maxime placeat facere possimus, omnis voluptas assumenda est, omnis dolor repellendus. Temporibus autem quibusdam et aut officiis debitis aut rerum necessitatibus saepe eveniet ut et voluptates repudiandae sint et molestiae non recusandae. Itaque earum rerum hic tenetur a sapiente delectus, ut aut reiciendis voluptatibus maiores alias consequatur aut perferendis doloribus asperiores repellat."</p>
<p>1914 translation by H. Rackham<br />
"On the other hand, we denounce with righteous indignation and dislike men who are so beguiled and demoralized by the charms of pleasure of the moment, so blinded by desire, that they cannot foresee the pain and trouble that are bound to ensue; and equal blame belongs to those who fail in their duty through weakness of will, which is the same as saying through shrinking from toil and pain. These cases are perfectly simple and easy to distinguish. In a free hour, when our power of choice is untrammelled and when nothing prevents our being able to do what we like best, every pleasure is to be welcomed and every pain avoided. But in certain circumstances and owing to the claims of duty or the obligations of business it will frequently occur that pleasures have to be repudiated and annoyances accepted. The wise man therefore always holds in these matters to this principle of selection: he rejects pleasures to secure other greater pleasures, or else he endures pains to avoid worse pains."</p>
<p><small>명령을 찾는 길(PATH)과 절대 경로</small></p>
<p>클로드 코드 설치 오류를 겪고 다시 깔아야 하나 고민했는데, 알고 보니 설치는 멀쩡했습니다. 설치 성공 문구까지 본 직후 새 터미널이 클로드 명령을 찾지 못했던 일을 빈 폴더에서 처음부터 직접 다시 따라가 봤습니다.</p>
<h2 id="s1">1. 클로드 코드 설치 오류, 무슨 일이 있었나요?</h2>
<p>2026-09-29 맥에서 빈 폴더를 홈 폴더 삼아 공식 설치 스크립트로 클로드 코드 2.1.284 를 깔았습니다. 설치는 성공 문구와 종료 코드(프로그램이 끝나며 남기는 성공, 실패 숫자) 0 으로 끝났습니다.</p>
<p>그런데 새 터미널에서 클로드를 부르자 명령을 찾을 수 없다는 오류와 함께 127 이 나왔습니다. 원래 쓰던 홈 폴더는 건드리지 않았고 로그인 화면 앞에서 멈췄기 때문에, 이 글은 설치와 진단까지만 다룹니다.</p>
<h2 id="s2">2. 무슨 문제가 생겼나요?</h2>
<p>설치 전과 설치 후의 오류 문구가 한 글자도 다르지 않았습니다. 그래서 그 한 줄만으로는 설치가 안 된 것인지, 깔렸는데 못 찾는 것인지 가릴 수 없었습니다.</p>
<p>원인은 깔린 폴더 <code>~/.local/bin</code> 이 셸의 PATH 에 없다는 것이었습니다. 설치 스크립트는 성공 문구 위와 맨 끝에 같은 경고를 두 번 찍었지만, 설치 뒤 <code>ls ~/.zshrc</code> 는 <code>No such file or directory</code> 였습니다. 이번 실행에서 스크립트는 셸 설정 파일을 대신 고치지 않았습니다.</p>
<p><code>.zshrc</code> 에 한 줄을 넣어도 끝이 아니었습니다. 스크립트나 cron 처럼 사람이 열지 않는 비대화형 셸은 <code>.zshrc</code> 를 읽지 않아 같은 127 이 다시 나왔습니다.<br />
<img data-recalc-dims="1" decoding="async" src="https://i0.wp.com/blog.wonizz.com/wp-content/uploads/2026/09/01-screenshot-6.png?w=1200&#038;ssl=1" alt="클로드 코드 설치 오류, 공식 설치 스크립트가 성공 문구와 PATH 경고를 함께 출력한 뒤 새 셸에서 command not found 가 나오는 터미널 화면" /></p>
<h2 id="s3">3. 클로드 코드 설치 오류, 어떻게 풀었나요?</h2>
<p>다시 설치하지 않고 아래 순서로 확인했습니다.</p>
<ol>
<li><strong>설치 출력의 <code>Setup notes</code> 를 끝까지 읽습니다.</strong> PATH 경고가 있으면 설치 실패가 아니라 PATH 문제입니다</li>
<li><strong>절대 경로로 설치부터 가립니다.</strong> <code>~/.local/bin/claude --version</code> 은 <code>2.1.284 (Claude Code)</code> 와 종료 코드 0 을 냈습니다</li>
<li><strong>사람이 여는 터미널은 <code>.zshrc</code> 한 줄로 고칩니다.</strong> 안내문의 PATH 한 줄을 넣자 새 대화형 셸에서 <code>command -v claude</code> 가 <code>~/.local/bin/claude</code> 를 돌려줬습니다. <code>>></code> 는 덧붙이기라 두 번 돌리면 줄이 두 번 들어가고, 열어 둔 터미널은 <code>source ~/.zshrc</code> 를 쳐야 바뀝니다</li>
<li><strong>스크립트와 cron 에는 절대 경로를 적습니다.</strong> <code>~</code> 를 풀어 쓴 전체 경로로 적었습니다</li>
<li><strong>종료 코드로 남은 일을 가릅니다.</strong> 127 이면 PATH, 1 이면서 <code>Not logged in</code> 이면 설치는 끝났고 로그인만 남았습니다. <code>claude doctor</code> 는 로그인 전에도 <code>Running: native (2.1.284)</code> 를 보여 주고 0 으로 끝났습니다</li>
</ol>
<figure class="wp-block-table">
<table>
<thead>
<tr>
<th>부르는 방식</th>
<th><code>.zshrc</code> 필요</th>
<th>이번 결과</th>
<th>어울리는 곳</th>
</tr>
</thead>
<tbody>
<tr>
<td><code>claude</code> (PATH 로 찾기)</td>
<td>필요</td>
<td>대화형 0, 비대화형 127</td>
<td>사람이 여는 터미널</td>
</tr>
<tr>
<td><code>~/.local/bin/claude</code> (절대 경로)</td>
<td>필요 없음</td>
<td>0</td>
<td>스크립트, cron, 다른 프로그램</td>
</tr>
<tr>
<td><code>zsh -i -c "claude ..."</code></td>
<td>필요</td>
<td>0</td>
<td>대화형 설정을 꼭 써야 할 때</td>
</tr>
</tbody>
</table>
</figure>
<p>설치 방법은 <a href="https://code.claude.com/docs/en/setup" target="_blank" rel="noopener">공식 설치 문서</a>를 함께 보시고, zsh 설정이 처음이라면 <a href="https://blog.wonizz.com/2020/06/22/oh-my-zsh-install-guide/">zsh 설치 방법</a>에서 <code>.zshrc</code> 가 쌓이는 모양을 먼저 보셔도 좋습니다.<br />
<img data-recalc-dims="1" decoding="async" src="https://i0.wp.com/blog.wonizz.com/wp-content/uploads/2026/10/03-diagram-vs-ko-1.png?w=1200&#038;ssl=1" alt="클로드 코드 설치 오류, 같은 .zshrc 를 두고 대화형 셸(zsh -i -c)은 claude 를 찾고 비대화형 셸(zsh -c)은 127 로 끝나는 차이를 비교한 다이어그램" /></p>
<h2 id="s4">4. 누구에게 도움이 되나요?</h2>
<p>새 맥에 클로드 코드를 막 깔았는데 명령을 못 찾는 분, 깐 클로드 코드를 스크립트나 cron 에서 부르려는 분이라면 읽어 보세요. 다시 설치하기 전에 절대 경로 한 번이면 원인이 갈립니다.</p>
<p>bash, <code>.zprofile</code> 과 <code>.zshenv</code>, 실제 cron 이 주는 PATH, npm 과 Homebrew 설치, Linux 와 Windows, 로그인 뒤 오류는 이번에 돌려 보지 않았습니다. 이런 환경이라면 이 글의 결론을 그대로 옮기지 않는 편이 맞습니다.<br />
<img data-recalc-dims="1" decoding="async" src="https://i0.wp.com/blog.wonizz.com/wp-content/uploads/2026/10/07-diagram-vs-ko.png?w=1200&#038;ssl=1" alt="클로드 코드 설치 오류를 종료 코드 127, 1, 0 과 출력 문구로 PATH 문제, 로그인 전, 정상 동작으로 가르는 판정 흐름도" /></p>
<h2 id="s5">5. 한 줄 정리</h2>
<h3>필자의 결론</h3>
<p><strong>클로드 코드 설치 오류의 대부분은 다시 설치할 문제가 아니라 PATH 문제였고, 필자는 사람이 쓰는 터미널에는 <code>.zshrc</code> 한 줄을, 스크립트와 cron 에는 <code>~/.local/bin/claude</code> 절대 경로를 쓰기로 정했습니다.</strong> 성공 신호와 실제 결과를 따로 봐야 한다는 교훈은 <a href="https://blog.wonizz.com/2026/09/27/vibe-coding-reality-selftest-real-data/">테스트는 통과했는데 261편 중 6편만 맞았다</a>에서도 다뤘습니다.</p>
<blockquote><p>
그래서 당신은 이것만 하면 됩니다. 새 터미널에서 <code>~/.local/bin/claude --version</code> 과 <code>claude --version</code> 을 차례로 쳐서 어느 쪽이 도는지부터 확인해 보세요.
</p></blockquote>
<p>설치 뒤 무엇을 할지는 서평 <a href="https://blog.wonizz.com/2026/09/16/claude-code-agentic-coding/">클로드 코드 에이전틱 코딩</a>이, 규칙 파일이 안 읽힐 때는 <a href="https://blog.wonizz.com/2026/09/19/agents-md-not-loaded/">AGENTS.md 안 읽힐 때 해결 방법 총정리</a>가 이어 읽기 좋습니다.</p>
<h2 id="s6">부록: 재현 명령과 출력</h2>
<p>2026-09-29 19:27~19:35 KST, macOS 27.0 arm64 에서 <code>/tmp/cc-fresh/home</code> 을 HOME 으로 삼아 돌렸습니다. 이 글의 <code>~</code> 는 전부 이 빈 HOME 입니다.</p>
<figure class="wp-block-table">
<table>
<thead>
<tr>
<th>순서</th>
<th>한 일</th>
<th>원문 결과(일부)</th>
<th>종료 코드</th>
</tr>
</thead>
<tbody>
<tr>
<td>1</td>
<td>설치 전 새 셸에서 <code>claude --version</code></td>
<td><code>zsh:1: command not found: claude</code></td>
<td>127</td>
</tr>
<tr>
<td>2</td>
<td>공식 설치 스크립트 실행</td>
<td><code>Claude Code successfully installed!</code> 와 PATH 경고 2회</td>
<td>0</td>
</tr>
<tr>
<td>3</td>
<td>설치 직후 새 셸에서 <code>claude --version</code></td>
<td><code>zsh:1: command not found: claude</code>, <code>~/.zshrc</code> 없음</td>
<td>127</td>
</tr>
<tr>
<td>4</td>
<td><code>.zshrc</code> 에 PATH 한 줄 넣고 대화형 셸</td>
<td><code>2.1.284 (Claude Code)</code></td>
<td>0</td>
</tr>
<tr>
<td>5</td>
<td>절대 경로 <code>~/.local/bin/claude --version</code></td>
<td><code>2.1.284 (Claude Code)</code></td>
<td>0</td>
</tr>
<tr>
<td>6</td>
<td>로그인 전 <code>claude -p</code></td>
<td><code>Not logged in</code> 문구</td>
<td>1</td>
</tr>
<tr>
<td>7</td>
<td><code>.zshrc</code> 를 넣은 뒤 비대화형 셸(<code>zsh -c</code>)</td>
<td><code>zsh:1: command not found: claude</code></td>
<td>127</td>
</tr>
<tr>
<td>8</td>
<td><code>claude doctor</code></td>
<td><code>Running: native (2.1.284)</code></td>
<td>0</td>
</tr>
</tbody>
</table>
</figure>
<p>설치와 설치 직후 확인(설치 출력은 발췌)입니다. 안내문의 한 줄은 <code>echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.zshrc && source ~/.zshrc</code> 였습니다.</p>
<pre class="wp-block-code"><code>$ curl -fsSL https://claude.ai/install.sh | bash
  ● Native installation exists but ~/.local/bin is not in your PATH. Run:
✔ Claude Code successfully installed!
$ env -i HOME=/tmp/cc-fresh/home PATH=/usr/bin:/bin /bin/zsh -f -c "claude --version"
zsh:1: command not found: claude</code></pre>
<p><code>.zshrc</code> 를 넣은 뒤 대화형과 비대화형의 차이입니다.</p>
<pre class="wp-block-code"><code>$ zsh -i -c "claude --version"
2.1.284 (Claude Code)
$ env -i HOME=/tmp/cc-fresh/home PATH=/usr/bin:/bin /bin/zsh -c "claude --version"
zsh:1: command not found: claude</code></pre>
<p>로그인 전 <code>claude -p</code> 입니다.</p>
<pre class="wp-block-code"><code>$ claude -p "ok 라고만 답해" < /dev/null
Not logged in · Please run /login
rc=1</code></pre>
<p>doctor 출력의 <code>Path: ~/.local/share/claude/versions/2.1.284</code> 줄로 본체 위치도 확인했습니다. doctor 출력에 있던 경고 한 건은 가짜 HOME 이라 키체인 파일이 없어서 생긴 격리 시험의 부산물이라 다루지 않았고, 계정 쪽 줄도 뺐습니다.</p>
<p>The post <a rel="nofollow" href="https://blog.wonizz.com/2026/10/14/claude-code-install-errors/">[AI 코딩] 클로드 코드 설치 오류, 깔았는데 명령을 못 찾은 일</a> appeared first on <a rel="nofollow" href="https://blog.wonizz.com">WONIZZ.LOG</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://blog.wonizz.com/2026/10/14/claude-code-install-errors/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">4030</post-id>	</item>
	</channel>
</rss>
