我要评分
获取效率
正确性
完整性
易理解

Installing FastDB by Compiling Source Code

  1. Download the FastDB source package.
    1. Download the FastDB source package using your local browser.

      Download address: http://www.garret.ru/fastdb-3.76.tar.gz

    2. Copy the source package to the /home directory on the server.

    If the server is connected to the Internet, you can run the wget command on the server to download the source package.

    1
    2
    cd /home
    wget http://www.garret.ru/fastdb-3.76.tar.gz
    
  2. Go to the /home directory.
    1
    cd /home/
    
  3. Decompress the FastDB installation package.
    1
    tar -xvf fastdb-3.76.tar.gz
    
  4. Go to the fastdb directory.
    1
    cd fastdb
    
  5. Perform the compilation.
    1
    ./configure --prefix=/opt/fastdb --build=arm-linux
    

    PREFIX=PATH specifies the FastDB installation directory.

  6. Perform the compilation and installation.
    1
    make -j64
    

    • In the command, -j 64 can make full use of the multi-core feature of the CPUs to accelerate the compilation. The number following -j indicates the number of CPU cores. You can run the cat /proc/cpuinfo | grep processor | wc -l command to query the number of CPU cores. The value specified must be equal to or less than the number of CPU cores.
    • If the error message "testtimeseries.cpp:70:53: error: call of overloaded 'fmin(float&, float&)' is ambiguous" is displayed during compilation and installation, see make error.
  7. Perform the installation.
    1
    make install
    

  8. View the installation directory.
    1
    2
    ll /opt/fastdb
    ll /opt/fastdb/bin