草庐IT

pre-compilation

全部标签

Git 'pre-receive' 钩子(Hook)和 'git-clang-format' 脚本可靠地拒绝违反代码风格约定的推送

让我们立即从我已经编写的pre-receive钩子(Hook)的片段开始:#!/bin/sh##format_bold='\033[1m'format_red='\033[31m'format_yellow='\033[33m'format_normal='\033[0m'##format_error="${format_bold}${format_red}%s${format_normal}"format_warning="${format_bold}${format_yellow}%s${format_normal}"##stdout(){format="${1}"shiftpri

ruby - 混帐,Heroku : pre-receive hook declined

我正在设置一个git存储库并尝试将其链接到Heroku。当我运行命令时gitpushherokumaster我收到了Countingobjects:7,done.Deltacompressionusingupto2threads.Compressingobjects:100%(5/5),done.Writingobjects:100%(7/7),714bytes,done.Total7(delta1),reused0(delta0)----->Herokureceivingpush!Herokupushrejectedduetoanunrecognizederror.!We'vebee

linux - autoconf 在 Linux Mint 上提示 "C compiler cannot create executables"

我正在尝试在32位和64位安装上安装LinuxMint16'petra'。我的电脑没有互联网连接,因此必须手动安装所有附加软件。作为一名开发人员,我认为我会尝试使用wxWidgets安装代码块,因此请按照以下位置的说明进行操作:http://wiki.codeblocks.org/index.php?ti为了执行安装,我似乎需要先决条件,所以请按照在上找到的说明进行操作https://developer.gnome.org/gtk3/stable...lding.html下载glib'stuff',解压并运行配置。正是在这一点上,事情失败了。我在终端中收到一条消息,指出C编译器无法创建

Linux Yum 致命 Python 错误 : pycurl: libcurl link-time version is older than compile-time version

所以这个错误让我发疯,我在网上搜索了很多次,运行了一些东西但没有结果。使用yum时出现以下错误。[root@texaspycurl-7.19.0]#yumupdateFatalPythonerror:pycurl:libcurllink-timeversionisolderthancompile-timeversionAborted[root@texaspycurl-7.19.0]#rpm-qa|greppycurlpython-pycurl-7.19.0-8.el6.i686[root@texaspycurl-7.19.0]#rpm-qa|grepcurlcurl-7.19.7-26

linux - RPM 规范文件 - 如何在 %pre 脚本中获取 rpm 包位置

我现在与RPM包管理器一起工作了大约一个月。目前我想使用rpm-U来升级之前RPM执行的现有内容,但我需要知道文件系统上的rpm包位置。我能想到的唯一方法是在整个文件系统中搜索%pre脚本中的rpm名称,但我真的很想避免使用该选项。有什么方法可以将rpm包的路径(包可以在系统上的任何位置)作为规范文件(%pre和%post脚本)中的变量。希望我已经足够清楚地解释了我的问题。欢迎任何帮助或建议。 最佳答案 没有一个安装包的位置(或路径),所以我不确定你在问什么。由名为“foo”的已安装rpm包安装的文件可以显示rpm-ql富除了“/”

配置 : error: cannot run C compiled programs

我正在尝试使用DebianWheezyOS在我的RaspberryPi上安装不同的软件。当我运行尝试配置我正在尝试安装的软件时,我得到了这个输出checkingforCcompilerdefaultoutputfilename...a.outcheckingforsuffixofexecutables...checkingwhetherwearecrosscompiling...configure:error:in'directoryofwhereI'minstallingthesoftware'configure:error:cannotrunCcompiledprograms.If

c++ - Qt 造物主/Linux : setting compiler/linker option -ldl for dynamic libraries

我都被谷歌搜索出来了!感谢任何可以帮助我的人......我已经构建了test.so并希望使用dlfcn.h中定义的dlopen()、dlsym()等动态调用它我可以编译我在命令行上调用的程序(main.cpp)没有错误g++main.cpp-ldl-omyprog没有-ldl开关,我得到错误:undefinedreferencedlopen()。另外,如果-ldl开关没有放在g++参数列表中的源文件之后,那么我会得到同样的错误。我的问题是:如何在QtCreator中编译我的main.cpp?QtCreator报同样的错误:undefinedreferencedlopen()我试过直接将

linux - 配置 : error: no acceptable C compiler found in $PATH

我正在尝试构建和安装ApacheThrift编译器和库我必须输入指令中显示的这个命令./configure&&make但是我得到这个错误:checkingforgcc...nocheckingforcc...nocheckingforcl.exe...noconfigure:error:in`/PATH/TO/thrift-0.9.3':configure:error:noacceptableCcompilerfoundin$PATH当我输入命令提示符时gcc--version我明白了海湾合作委员会(海湾合作委员会)5.3.0版权所有(C)2015FreeSoftwareFoundat

c++ - 交叉编译: special cross compiler or just gcc with option -march?

我需要在Linux机器上为RaspberryPI3+编译程序,并且代码必须符合c++17标准。官方工具链已过时且缺少c++17编译选项。我现在可以看到的两个解决方案是:1)gcc有一个选项-march,描述如下:https://gcc.gnu.org/onlinedocs/gcc/ARM-Options.html2)按照此处的建议安装arm-linux-gbueabi-gcc软件包:Cross-compilingforRaspberrypiwithmoderngcc两个选项有什么区别?还有其他可行的可能性吗? 最佳答案 如果您想要R

linux - "Compiler threading support is not turned on."

通常我可以通过谷歌搜索找到解决方案,但这次不行。我正在使用64位LinuxUbuntu11.04编译32位Windows应用程序。我正在使用i586-mingw32msvc-gcc来编译我的C++文件。测试.cpp:#include生成文件:i586-mingw32msvc-gcc-c-m32-mthreads-otest.otest.cpp错误:boost/asio/detail/socket_types.hpp:#includedoesn'texist.添加到makefile:-DBOOST_WINDOWSError:#warningPleasedefine_WIN32_WINNT