Jump to content

JLS

Members
  • Posts

    2
  • Joined

  • Last visited

  • Donations

    0.00 GBP 

Wiki Article Comments posted by JLS

  1. If using WSL2 on Windows, you will run into this error when installing & starting mysql:

    sudo su
    root@DESKTOP-2NUPEGC:/home/mangos/build# mysql
    ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
    root@DESKTOP-2NUPEGC:/home/mangos/build# sudo /etc/init.d/mysql start
     * Starting MySQL database server mysqld                                                                                No directory, logging in with HOME=/
    mkdir: cannot create directory ‘//.cache’: Permission denied
    -su: 19: /etc/profile.d/wsl-integration.sh: cannot create //.cache/wslu/integration: Directory nonexistent
    

    This issue is noted here. To resolve this, follow this comment noted in the link:

    Quote

    The problem is with the script "/etc/profile.d/wsl-integration.sh". As a quick workaround insert the following line before the first line in "/etc/profile.d/wsl-integration.sh" (use sudo to edit the file):

    # Check if we have HOME folder
    if [[ "${HOME}" == "/" ]]; then
      exit 0
    fi


    I mean before the line:

    WSL_INTEGRATION_CACHE=$HOME/.cache/wslu/integration`

     

  2. Ubuntu 18.04 comes default with cmake 3.10.2. When running this command, you might receive this error:

    cmake ../sources/ -DCMAKE_INSTALL_PREFIX=/opt/wow/install/mangos -DCONF_INSTALL_DIR=/opt/wow/install/mangos/conf
    
    
    CMake Error at CMakeLists.txt:20 (cmake_minimum_required):
      CMake 3.12 or higher is required.  You are running version 3.10.2
    -- Configuring incomplete, errors occurred!
    

    To fix this, you can upgrade cmake to a newer version. For example, here are the commands to upgrade to 3.16.7:

    cd ~/
    mkdir tmp
    cd tmp
    wget https://cmake.org/files/v3.16/cmake-3.16.7-Linux-x86_64.tar.gz
    tar zxvf cmake-3.16.7-Linux-x86_64.tar.gz
    sudo mv cmake-3.16.7-Linux-x86_64     /opt/cmake-3.16.7
    sudo ln -sf  /opt/cmake-3.16.7/bin/*    /usr/bin/
    cmake --version
    rm -rf ~/tmp/

     

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use