1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

環境構築(asdf)で~./asdf.shが見当たらない

Last updated at Posted at 2025-05-12

WSL2(Ubuntu)環境で「~./asdf.shが見当たらない」旨のエラー

しかし実際に作業を進めるにあたって影響が出ていなかったためそのまま環境構築作業を進めた
が、結局関連っぽいエラーが出てきたのでエラー原因を取り除く

試したこと

1. 「~./asdf.shが見当たらない」と出ているので該当フォルダを確認するも、homebrew経由でインストールしたはずのasdf.shが見当たらない

2. homebrew経由ではなくgitclone経由でインストール(同じWindows環境で先輩が既に実施した)

解決方法

結論としてはasdfをgitclone経由で再インストールにて上記エラーメッセージは発生しなくなった

推定原因

brew経由でasdfインストールを行った
→homebrewのメインユーザはMacが多いため環境差異で上記エラーが出た?
環境構築にあたって、複数のインストールやファイルの書き換えを行ったタイミングで該当箇所を弄った
→chatgptを使用して重要箇所(?)のファイル書き換えを行った

改善点

ファイル構成等を理解していない状態で、環境構築を行うのは危険

構築前に以下の点には気を付ける
・ファイル構成
・実行するコマンドの意味(何をしようとしているか)

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?