日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

CrazyDiskInfo硬盘检测工具 安装记录

發(fā)布時間:2025/3/19 编程问答 26 豆豆
生活随笔 收集整理的這篇文章主要介紹了 CrazyDiskInfo硬盘检测工具 安装记录 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

一、安裝相關庫

apt-get install libatasmart-dev libncurses5-dev libncursesw5-dev 復制代碼

二、克隆源碼

git clone https://github.com/otakuto/crazydiskinfo 復制代碼

三、進入crazydiskinfo文件夾后編譯和運行

mkdir build cd build cmake .. make && make install crazy 復制代碼

四、安裝Cmake

root@chenwr-pc:/home/soft/crazydiskinfo/build# apt-get install cmake Reading package lists... Done Building dependency tree Reading state information... Done The following extra packages will be installed:cmake-data Suggested packages:codeblocks eclipse The following NEW packages will be installed:cmake cmake-data 0 upgraded, 2 newly installed, 0 to remove and 751 not upgraded. Need to get 3,294 kB of archives. After this operation, 16.6 MB of additional disk space will be used. Do you want to continue? [Y/n] y Get:1 http://archive.ubuntu.com/ubuntu/ trusty/main cmake-data all 2.8.12.2-0ubuntu3 [676 kB] Get:2 http://archive.ubuntu.com/ubuntu/ trusty/main cmake amd64 2.8.12.2-0ubuntu3 [2,618 kB] Fetched 3,294 kB in 1min 10s (46.5 kB/s) Selecting previously unselected package cmake-data. (Reading database ... 183256 files and directories currently installed.) Preparing to unpack .../cmake-data_2.8.12.2-0ubuntu3_all.deb ... ERROR: cmake-data is broken - called emacs-package-install as a new-style add-on, but has no compat file. Unpacking cmake-data (2.8.12.2-0ubuntu3) ... Selecting previously unselected package cmake. Preparing to unpack .../cmake_2.8.12.2-0ubuntu3_amd64.deb ... Unpacking cmake (2.8.12.2-0ubuntu3) ... Processing triggers for man-db (2.6.7.1-1) ... Setting up cmake-data (2.8.12.2-0ubuntu3) ... Install cmake-data for emacs24 install/cmake-data: Byte-compiling for emacs24 Wrote /usr/share/emacs24/site-lisp/cmake-data/cmake-mode.elc Setting up cmake (2.8.12.2-0ubuntu3) ... 復制代碼

安裝完cmake后執(zhí)行cmake .. 出現錯誤

root@chenwr-pc:/home/soft/crazydiskinfo/build# cmake .. -- The CXX compiler identification is unknown CMake Error: your CXX compiler: "CMAKE_CXX_COMPILER-NOTFOUND" was not found. Please set CMAKE_CXX_COMPILER to a valid compiler path or name. -- Configuring incomplete, errors occurred! See also "/home/soft/crazydiskinfo/build/CMakeFiles/CMakeOutput.log". See also "/home/soft/crazydiskinfo/build/CMakeFiles/CMakeError.log". 復制代碼

解決辦法:

  • sudo apt-get install g++
  • cmake -D CMAKE_CXX_COMPILER="g++" CMAKE -D CMAKE_BUILD_TYPE=Release -D CMAKE_INSTALL_PREFIX:PATH="/usr/local" .
  • root@chenwr-pc:/home/soft/crazydiskinfo/build# cmake -D CMAKE_CXX_COMPILER="g++" CMAKE -D CMAKE_BUILD_TYPE=Release -D CMAKE_INSTALL_PREFIX:PATH="/usr/local" . -- The CXX compiler identification is GNU 4.8.4 -- Check for working CXX compiler: /usr/bin/g++ -- Check for working CXX compiler: /usr/bin/g++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Configuring done -- Generating done -- Build files have been written to: /home/soft/crazydiskinfo/build 復制代碼

    五、安裝成功流程

    root@chenwr-pc:/home/soft/crazydiskinfo/build# cmake .. -- Configuring done -- Generating done -- Build files have been written to: /home/soft/crazydiskinfo/build root@chenwr-pc:/home/soft/crazydiskinfo/build# make && make install crazy Scanning dependencies of target CrazyDiskInfo [100%] Building CXX object CMakeFiles/CrazyDiskInfo.dir/main.cpp.o Linking CXX executable crazy [100%] Built target CrazyDiskInfo [100%] Built target CrazyDiskInfo Linking CXX executable CMakeFiles/CMakeRelink.dir/crazy Install the project... -- Install configuration: "Release" -- Installing: /usr/sbin/crazy 復制代碼

    終端輸入crazy,軟件界面

    六、SMART檢測參數

    參考資料:

    硬盤 SMART 檢測參數詳解[轉] - york_hust - 博客園 www.cnblogs.com/york-hust/p…

    總結

    以上是生活随笔為你收集整理的CrazyDiskInfo硬盘检测工具 安装记录的全部內容,希望文章能夠幫你解決所遇到的問題。

    如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。