line 150: hostname: command not found

Problems with the Linux version of XAMPP, questions, comments, and anything related.

line 150: hostname: command not found

Postby aureliolk » 13. April 2022 19:42

Hi Guys !!

I make install xampp 8.1.2.0 in arch linux and dont work.
I recive erro start

Code: Select all
Starting XAMPP for Linux 8.1.2-0...
XAMPP: Starting Apache...already running.
XAMPP: Starting MySQL.../opt/lampp/lampp: line 150: hostname: command not found
ok.
XAMPP: Starting ProFTPD...ok.
/opt/lampp/bin/mysql.server: line 261: log_success_msg: command not found


Can someone help me?
aureliolk
 
Posts: 1
Joined: 13. April 2022 19:37
XAMPP version: 8.1.2.0
Operating System: Arch Linux

Re: line 150: hostname: command not found

Postby Nobbie » 18. April 2022 12:30

"hostname" is a shell tool from the net-tools package. The arch linux team decided to remove net-tools from their distribution already in 2011(!). See https://archlinux.org/news/deprecation-of-net-tools/

Ask in an Arch Linux forum, which tools are suited to replace "hostname" from the net-tools package. Finally edit /opt/lampp/lampp and change line 150, where "hostname" is used. If there is no replacement available, you cannot use the lampp start script. Instead start Apache (/opt/lampp/bin/httpd) manually. Thats not is as difficult as it may sound, basically alread "sudo /opt/lampp/bin/httpd" without any further options should do it.

Same for mysqld etc, you can start all these tools as well manually.
Nobbie
 
Posts: 13179
Joined: 09. March 2008 13:04


Return to XAMPP for Linux

Who is online

Users browsing this forum: No registered users and 71 guests