最近正在學習Mule ESB, 但是在Mac上運行Mule之后得到下面的錯誤:
下載了3.9 和4.2都有相同的錯誤:
Running Mule...
/Users/********/Desktop/mule/mule-standalone-3.9.0-hf1/bin/./mule: line 499: /Users/******/Desktop/mule/mule-standalone-3.9.0-hf1/lib/boot/exec/wrapper-macosx-universal-32: Bad CPU type in executable
原因:
升級到Mac OS Catalina之后,與系統不兼容
解決方案:
-
從下面的地址下載Java service wrapper,選擇64位 :
http://wrapper.tanukisoftware.com/doc/english/download.jsp#stable -
下載之后解壓縮,復制lib目錄下wrapper.jar和bin/目錄下wrapper到你的Mule軟件/lib/boot/exec/目錄下, 移動之后把wrapper文件重命名為wrapper-macosx-universal-32
-
到Mule的bin目錄下執行./mule. 如果遇到系統提示不信任需要到系統偏好設置中的安全性與隱私上修改.
-
成功運行了!!!
192:bin ***$ mule start
MULE_HOME is set to /Users/***/Desktop/mule/mule-standalone-3.9.0-hf2
Starting Mule...
192:bin ***$ mule status
MULE_HOME is set to /Users/***/Desktop/mule/mule-standalone-3.9.0-hf2
Mule is running (18746).