청금석은 왜 효과가 없나요?

청금석은 왜 효과가 없나요?

다음 명령을 사용하여 Lapis 프레임워크를 설치했습니다.

luarocks install lapis --local

이를 통해 다음을 성공적으로 설치할 수 있었습니다.

Updating manifest for /home/Oman/.luarocks/lib/luarocks/rocks
lapis 1.5.0-2 is now built and installed in /home/Oman/.luarocks (license: MIT)

새 프로젝트를 생성하려고 시도한 후:

[Oman@Oman ~]$ lapis new

오류가 발생했습니다.

-bash: lapis: command not found

왜 이런 일이 발생합니까?

답변1

나는 설치 프로그램에 전혀 익숙하지 않지만 luarocks(EPEL에서 나온 것이기를 바랍니다) 출력에 표시된 대로 lapis어딘가에 라는 실행 파일을 설치하는 것으로 의심됩니다. /home/Oman/.luarocks아마도 /home/Oman/.luarocks/bin? 전체 경로 없이 작동하려면 실행 파일의 디렉터리를 $PATH쉘의 rc 파일(예: ~/.bash_profile)에 있는 변수에 추가해야 합니다.

관련 정보