使用git bash編譯安裝sysbench時遇到的坑

来源:https://www.cnblogs.com/aaron8219/archive/2018/09/11/9628380.html
-Advertisement-
Play Games

Preface When I was compiling the sysbench just now,I encountered some failures in the precedure.I'll show the issue and workaround below. Issues 1. Ex ...


  Preface       When I was compiling the sysbench just now,I encountered some failures in the precedure.I'll show the issue and workaround below.   Issues   1. Executing autogen.sh script turned out to be error. [root@docker1 sysbench]# ./autogen.sh -bash: ./autogen.sh: /bin/sh^M: bad interpreter: No such file or directory [root@docker1 sysbench]# cat autogen.sh  #!/bin/sh   autoreconf -vi   Even I directly run "autoreconf -vi" command,it still showed error   [root@docker1 sysbench]# autoreconf -vi autoreconf: Entering directory `.' autoreconf: configure.ac: not using Gettext autoreconf: running: aclocal -I m4 autoreconf: configure.ac: tracing autoreconf: running: libtoolize --copy .ibtoolize: AC_CONFIG_MACRO_DIR([m4]) conflicts with ACLOCAL_AMFLAGS=-I m4 autoreconf: libtoolize failed with exit status: 1   Then,I found a workaround: https://yq.aliyun.com/articles/497392   Because I've used "git clone" to download the source package of sysbench directly without disabling the transcoding first.   After that,the shell could be executed,but when I continue to execute configure and make,there were still some errors found.   2. Executing make turned out to be error. [root@docker1 sysbench]# ./configure --with-mysql-includes=/usr/local/mysql/include --with-mysql-libs=/usr/local/mysql/lib && make && make install ... In file included from lj_ffrecord.c:1197:0: lj_recdef.h:225:1: error: ?.ecff_rawlen?.undeclared here (not in a function)  recff_rawlen,  ^ make[3]: *** [lj_ffrecord.o] Error 1 make[3]: Leaving directory `/opt/mysql/sysbench/third_party/luajit/tmp/luajit/src' make[2]: *** [src/luajit] Error 2 make[2]: Leaving directory `/opt/mysql/sysbench/third_party/luajit/tmp/luajit' make[1]: *** [lib/libluajit-5.1.a] Error 2 make[1]: Leaving directory `/opt/mysql/sysbench/third_party/luajit' make: *** [all-recursive] Error 1   [root@docker1 luajit]# pwd /opt/mysql/sysbench/third_party/luajit [root@docker1 luajit]# find . -type f -print0 | xargs -0 dos2unix
  Then,the LuaJIT issue was okay.   ==== Successfully installed LuaJIT 2.1.0-beta3 to /opt/mysql/sysbench/third_party/luajit ====   Note: the development releases deliberately do NOT install a symlink for luajit You can do this now by running this command (with sudo):     ln -sf luajit-2.1.0-beta3 /opt/mysql/sysbench/third_party/luajit/bin/luajit   make[2]: warning: Clock skew detected. Your build may be incomplete. make[2]: Leaving directory `/opt/mysql/sysbench/third_party/luajit/tmp/luajit' make[1]: warning: Clock skew detected. Your build may be incomplete. make[1]: Leaving directory `/opt/mysql/sysbench/third_party/luajit' Making all in third_party/concurrency_kit make[1]: Entering directory `/opt/mysql/sysbench/third_party/concurrency_kit' make[1]: Warning: File `Makefile' has modification time 143 s in the future rm -rf tmp mkdir tmp tar -C . -cf - ck | tar -xf - -C tmp/ chmod -R u+w tmp cd tmp/ck && \ CC="gcc -std=gnu99" \ CFLAGS="-O3 -funroll-loops -ggdb3 -march=core2 -D_GNU_SOURCE " \ LDFLAGS="-L/usr/local/lib" \   ./configure \   --prefix=/opt/mysql/sysbench/third_party/concurrency_kit && \ make && \ make install /bin/sh: ./configure: /bin/sh^M: bad interpreter: No such file or directory make[1]: *** [lib/libck.a] Error 126 make[1]: Leaving directory `/opt/mysql/sysbench/third_party/concurrency_kit' make: *** [all-recursive] Error 1   Then,I used dos2unix to transcode all the files in "/opt/mysql/sysbench/third_party" and it began to go on.But I was not be happy for long.Errors appeared one by one,faint!   lua/internal/sysbench.histogram.lua.h:137:3: warning: missing terminating " character [enabled by default] lua/internal/sysbench.histogram.lua.h:137:1: error: missing terminating " character make[2]: *** [sb_lua.o] Error 1 make[2]: Leaving directory `/opt/mysql/sysbench/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/opt/mysql/sysbench/src' make: *** [all-recursive] Error 1   This time I decided to transcode the whole files in "/opt/mysql/sysbench/src",but it turned out to be useless.Okay,then I gave up for continuing seeking the way to find it out.I downloaded the sysbench package again and disable transcoding automatically method by executing command below:   git config --global core.autocrlf false git config --global core.safecrlf true git config --global core.eol lf   Another make error shew up.   Making all in lua make[2]: Entering directory `/opt/mysql/sysbench/src/lua' make[2]: Warning: File `Makefile' has modification time 479 s in the future Making all in internal make[3]: Entering directory `/opt/mysql/sysbench/src/lua/internal' make[3]: Warning: File `Makefile' has modification time 479 s in the future make all-am make[4]: Entering directory `/opt/mysql/sysbench/src/lua/internal' make[4]: Warning: File `Makefile' has modification time 478 s in the future make[4]: Nothing to be done for `all-am'. make[4]: warning: Clock skew detected. Your build may be incomplete. make[4]: Leaving directory `/opt/mysql/sysbench/src/lua/internal' make[3]: warning: Clock skew detected. Your build may be incomplete. make[3]: Leaving directory `/opt/mysql/sysbench/src/lua/internal' make[3]: Entering directory `/opt/mysql/sysbench/src/lua' make[3]: Warning: File `Makefile' has modification time 478 s in the future make[3]: Nothing to be done for `all-am'. make[3]: warning: Clock skew detected. Your build may be incomplete. make[3]: Leaving directory `/opt/mysql/sysbench/src/lua' make[2]: warning: Clock skew detected. Your build may be incomplete. make[2]: Leaving directory `/opt/mysql/sysbench/src/lua' Making all in . make[2]: Entering directory `/opt/mysql/sysbench/src' make[2]: Warning: File `.deps/sysbench.Po' has modification time 536 s in the future make[2]: Nothing to be done for `all-am'. make[2]: warning: Clock skew detected. Your build may be incomplete. make[2]: Leaving directory `/opt/mysql/sysbench/src' make[1]: warning: Clock skew detected. Your build may be incomplete. make[1]: Leaving directory `/opt/mysql/sysbench/src' Making all in tests make[1]: Entering directory `/opt/mysql/sysbench/tests' make[1]: Warning: File `Makefile' has modification time 478 s in the future make[1]: Nothing to be done for `all'. make[1]: warning: Clock skew detected. Your build may be incomplete. make[1]: Leaving directory `/opt/mysql/sysbench/tests' make[1]: Entering directory `/opt/mysql/sysbench' make[1]: Warning: File `Makefile' has modification time 478 s in the future make[1]: Nothing to be done for `all-am'. make[1]: warning: Clock skew detected. Your build may be incomplete. make[1]: Leaving directory `/opt/mysql/sysbench' make: warning: Clock skew detected. Your build may be incomplete.   There's a solution here: http://smilejay.com/2012/08/warning-clock-skew/   But I waited for the count down over and then make it again.It was done successfully in the end.   [root@docker1 third_party]# sysbench -v sysbench 1.1.0-431660d (using bundled LuaJIT 2.1.0-beta3)  
您的分享是我們最大的動力!

-Advertisement-
Play Games
更多相關文章
  • 網站在運行期間感覺怪怪的,響應速度慢的不是一丁半點,帶寬5M,不該是這樣的呀 於是登錄Xshell 查看cpu情況如下 PID為3435的進程占用CPU過大,難道被病毒入侵了嗎? 查看該進程文件的絕對路徑 發現上述紅框文件,於是上網搜索了下,得治是挖礦病毒 處理辦法 1、刪除tmp目錄里的qW3xT ...
  • 場景:linux下掛載過去的代碼目錄編譯失敗。懷疑本地磁碟空間不足問題導致。解決方法:卸載重新掛載。 操作:卸載時報錯: 解決方法: 1.umount, 老是提示:device is busy, 服務又不能停止的。 可以用"umount -fl"解決! eg:umount -fl 6.0.20 2. ...
  • 一、文件比較運算符 1. e filename 如果 filename存在,則為真 如: [ -e /var/log/syslog ] 2. -d filename 如果 filename為目錄,則為真 如: [ -d /tmp/mydir ] 3. -f filename 如果 filename為 ...
  • 最近在觀察一些大數據方面的職位。特貢獻一套面試題,希望對找工作的博友們一點幫助! 1.簡述Linux以及Linux命令 cd命令 ls命令 mkdir和rmdir命令 cp命令 mv命令 rm命令 cat命令 tac命令 more命令 head命令 tail命令 touch命令 chown命令 fi ...
  • MongoDB 是高性能數據,但是在使用的過程中,大家偶爾還會碰到一些性能問題。MongoDB和其它關係型資料庫相比,例如 SQL Server 、MySQL 、Oracle 相比來說,相對較新,很多人對其不是很熟悉,所以很多開發、DBA往往是註重功能的實現,而忽視了性能的要求。其實,MongoDB ...
  • MongoDB日誌記錄了資料庫實例的健康狀態、語句的執行狀況、資源的消耗情況,所以日誌對於分析資料庫服務和性能優化很有幫助。 因此,很有必要花費一些時間來學習解析一下MongoDB的日誌文件。 日誌信息的格式 <日誌時間> <嚴重級別> <信息所屬分類> [<內容>] <消息> 例如 : 2014- ...
  • 一.binlog 二進位其它選項 在二進位日誌記錄了數據的變化過程,對於數據的完整性和安全性起著非常重要作用。在mysql中還提供了一些其它參數選項,來進行更小粒度的管理。 1.1 binlog-do-db=db_name 該選項告訴主伺服器,當前db_name庫會更新記錄到二進位日誌中,其它所有沒 ...
  • 1.字典表(sys_dict) 作用:用於存放多組值不變的基礎數據,只對系統提供查詢功能. *記錄的新增、更新、刪除都是通過手動進行操作. *其中dict_code為dict_title的編碼,相同dict_title的記錄為同一組基礎數據,每組基礎數據下又有多對dict_value與dict_na ...
一周排行
    -Advertisement-
    Play Games
  • 移動開發(一):使用.NET MAUI開發第一個安卓APP 對於工作多年的C#程式員來說,近來想嘗試開發一款安卓APP,考慮了很久最終選擇使用.NET MAUI這個微軟官方的框架來嘗試體驗開發安卓APP,畢竟是使用Visual Studio開發工具,使用起來也比較的順手,結合微軟官方的教程進行了安卓 ...
  • 前言 QuestPDF 是一個開源 .NET 庫,用於生成 PDF 文檔。使用了C# Fluent API方式可簡化開發、減少錯誤並提高工作效率。利用它可以輕鬆生成 PDF 報告、發票、導出文件等。 項目介紹 QuestPDF 是一個革命性的開源 .NET 庫,它徹底改變了我們生成 PDF 文檔的方 ...
  • 項目地址 項目後端地址: https://github.com/ZyPLJ/ZYTteeHole 項目前端頁面地址: ZyPLJ/TreeHoleVue (github.com) https://github.com/ZyPLJ/TreeHoleVue 目前項目測試訪問地址: http://tree ...
  • 話不多說,直接開乾 一.下載 1.官方鏈接下載: https://www.microsoft.com/zh-cn/sql-server/sql-server-downloads 2.在下載目錄中找到下麵這個小的安裝包 SQL2022-SSEI-Dev.exe,運行開始下載SQL server; 二. ...
  • 前言 隨著物聯網(IoT)技術的迅猛發展,MQTT(消息隊列遙測傳輸)協議憑藉其輕量級和高效性,已成為眾多物聯網應用的首選通信標準。 MQTTnet 作為一個高性能的 .NET 開源庫,為 .NET 平臺上的 MQTT 客戶端與伺服器開發提供了強大的支持。 本文將全面介紹 MQTTnet 的核心功能 ...
  • Serilog支持多種接收器用於日誌存儲,增強器用於添加屬性,LogContext管理動態屬性,支持多種輸出格式包括純文本、JSON及ExpressionTemplate。還提供了自定義格式化選項,適用於不同需求。 ...
  • 目錄簡介獲取 HTML 文檔解析 HTML 文檔測試參考文章 簡介 動態內容網站使用 JavaScript 腳本動態檢索和渲染數據,爬取信息時需要模擬瀏覽器行為,否則獲取到的源碼基本是空的。 本文使用的爬取步驟如下: 使用 Selenium 獲取渲染後的 HTML 文檔 使用 HtmlAgility ...
  • 1.前言 什麼是熱更新 游戲或者軟體更新時,無需重新下載客戶端進行安裝,而是在應用程式啟動的情況下,在內部進行資源或者代碼更新 Unity目前常用熱更新解決方案 HybridCLR,Xlua,ILRuntime等 Unity目前常用資源管理解決方案 AssetBundles,Addressable, ...
  • 本文章主要是在C# ASP.NET Core Web API框架實現向手機發送驗證碼簡訊功能。這裡我選擇是一個互億無線簡訊驗證碼平臺,其實像阿裡雲,騰訊雲上面也可以。 首先我們先去 互億無線 https://www.ihuyi.com/api/sms.html 去註冊一個賬號 註冊完成賬號後,它會送 ...
  • 通過以下方式可以高效,並保證數據同步的可靠性 1.API設計 使用RESTful設計,確保API端點明確,並使用適當的HTTP方法(如POST用於創建,PUT用於更新)。 設計清晰的請求和響應模型,以確保客戶端能夠理解預期格式。 2.數據驗證 在伺服器端進行嚴格的數據驗證,確保接收到的數據符合預期格 ...