Articles of 构build

jenkins与反向代理替代端口号

我有一个jenkinsbuild设者服务器,我试图用nginx设置反向代理。 我遵循jenkins站点的所有howto和文档,唯一不同的是我需要服务器可以在不同的端口上访问,然后是标准的https端口。 服务器必须可以在https://jenkins.example.com:9090这是现在工作,但我仍然有一些问题。 在pipe理jenkins,我不断收到消息 看来您的反向代理设置已损坏 另外当我login或申请或保存一些configuration更改我不断的redirect到https://jenkins.example.com没有端口号。 当我检查curl,并在一些页面的标题看它不断设置位置标题正确的url,但没有端口号。 我在nginx中有以下configuration server { listen 443 ssl spdy; server_name jenkins.example.com; add_header Strict-Transport-Security "max-age=31536000; includeSubdomains; preload"; add_header X-Frame-Options "DENY"; ssl on; ssl_certificate /etc/nginx/ssl/server.chain.crt; ssl_certificate_key /etc/nginx/ssl/server.key; ssl_ciphers "EECDH+AESGCM:EDH+AESGCM:ECDHE-RSA-AES128-GCM-SHA256:AES256+EECDH:DHE-RSA-AES128-GCM-SHA256:AES256+EDH:ECDHE-RSA-AES256-GCM-SHA384:DHE-RSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-SHA384:ECDHE-RSA-AES128-$ ssl_prefer_server_ciphers on; ssl_session_cache shared:SSL:10m; ssl_protocols TLSv1 TLSv1.1 TLSv1.2; # Diffie-Hellman parameter for DHE ciphersuites, recommended 2048 bits ssl_dhparam /etc/nginx/ssl/dhparam.pem; # enable ocsp stapling […]

未定义的引用mbind

我没有升级我的Ubuntu从11.04到11.10。 在11.04这一切工作得很好: gcc -fopenmp -g -c -o test.o test.c -I../include gcc -fopenmp -g -o test test.o -lnuma -lm -L../myLib -lmyL 但现在在11.10,它给出了以下错误: ../myLib/libmyL.a (get.o): In function 'get': get.c:(.text+0xa5): undefined reference to `mbind' 其中mbind是http://www.kernel.org/doc/man-pages/online/pages/man2/mbind.2.html 你可以帮我解决这个问题吗? 或者至less告诉我哪里出了问题? 谢谢。

如何在Mono Develop(Ubuntu,Linux)中将Saltarelle C#设置为JavaScript编译器

我试图在Mono的默认控制台项目上使用Saltarelle C#编译器 using System; namespace SaltarelleConsoleTest { class MainClass { public static void Main (string[] args) { Console.WriteLine ("Hello World!"); } } } 但是当我尝试编译与terminal命令 mono lib/Saltarelle.Compiler/tools/sc.exe -reference:lib/Saltarelle.Runtime/tools/Assemblies/mscorlib.dll Main.cs -outscript:bin/main.js 发生此错误: Unhandled Exception: System.TypeLoadException: Could not load type 'Saltarelle.Compiler.Program' from assembly 'sc, Version=1.5.0.0, Culture=neutral, PublicKeyToken=a4048e8fcc593f14'. [ERROR] FATAL UNHANDLED EXCEPTION: System.TypeLoadException: Could not load type 'Saltarelle.Compiler.Program' from […]

如何以编程方式确定二进制输出中的构build系统等价性?

背景:假设你有两台服务器作为C / C ++代码的构build服务器(Jenkins,如果重要的话)。 这两个服务器已经build立了相同的kickstarts,操作系统版本,库等。代码保存在Git的两个分支 – 开发和发布候选。 开发中的代码是权威的,并提升到RC。 Git哈希匹配。 在开发基础设施上构build的代码生成正常运行的二进制文件 在RC基础设施上生成的代码不(或者至less在testing中,似乎没有在Dev上见到的错误)。 你将如何去certificateDev的构build和RC的构build是相同的。 你会用什么工具? 你会检查什么? 你会捕捉什么指标? 其他软件公司如何做? 这不是一个理论性的练习 – 我被迫certificate这一点。 已阅读validation两个不同的构build体系结构(一个是另一个的重写)在function上是等同的 。 操作系统是RHEL 6.2。

快速的内核重新编译

我试图自动化重新编译升级的内核的过程。 (我的意思是版本升级) 我做的事: 用rsync备份目标文件(* .o) 删除目录并使mrproper 提取新的来源和补丁 用rsync恢复对象文件 但是我发现这没有意义。 由于跳过编译的东西需要得到一个哈希,这应该删除它。 问题:我需要保留什么文件? 或者它不存在? 顺便说一句:我已经知道ccache,但它打破了一个小configuration的变化。

OpenSSH 7.3p1 building:configure仅查找旧版本的OpenSSL库

我试图在已经安装了旧的OpenSSL版本的Linux机器上build立OpenSSH 7.3p1 。 首先,我成功编译了OpenSSL 1.0.2h,并安装在/opt/openssh-1.0.2h ,而不是放在旧的OpenSSL版本的/usr中。 tar xzf openssl-1.0.2h.tar.gz cd openssl-1.0.2h ./config –prefix=/opt/openssl-1.0.2h shared make depend make make test make install 然后我继续OpenSSH: tar xzf openssh-7.3p1.tar.gz cd openssh-7.3p1 ./configure –prefix=/opt/openssh-7.3p1 –with-openssl=/opt/openssl-1.0.2h 但是, configure脚本失败,并显示以下错误消息: checking OpenSSL header version… 0090802f (OpenSSL 0.9.8e-rhel5 01 Jul 2008) checking OpenSSL library version… configure: error: OpenSSL >= 0.9.8f required (have "0090802f (OpenSSL […]

Linux内核构build:以非交互方式执行“make localmodconfig”

我想以非交互方式运行“make localmodconfig”。 尝试时 是“”| 使localmodconfig 给出了以下错误: Console input/output is redirected. Run 'make oldconfig' to update configuration. make[1]: *** [scripts/kconfig/Makefile:45: localmodconfig] Error 1 make: *** [Makefile:547: localmodconfig] Error 2 我更喜欢localmodconfig而不是olddefconfig,因为旧的内核有3000多个模块,只使用了30个模块。 任何想法如何实现这一目标?

嵌套模板gcc编译器4.1.2错误

我试图创build一个模板类来隔离用户从数据types。 我会更喜欢使用适配器类,但需要更改需要模板的function签名。 在下面的代码示例(而不是实际的项目只是一个简化的版本来说明问题),而在主例程中,我可以使用ob_traits接口。 但是,当我尝试创build使用ob_traits作为基类的模板化的StructWrapper时,出现错误,而gcc无法识别创build的IntAdapter类。 这编译在MSVC 8.0上,但在gcc 4.1.2上失败20070626(Red Hat 4.1.2-14) 所以,首先两个问题,你明白为什么编译失败,下面指定的错误? 其次,如何以更简单的方式实现这个概念有什么build议? #include <iostream> template <typename T > struct ob_traits { ob_traits( T& param ) { value = param; }; T value; }; struct GeneralStructure { int a; GeneralStructure(int param):a(param){} }; struct DifferentStructure { GeneralStructure hidden; DifferentStructure( int param ):hidden(param){}; } ; /*template< typename T > […]

需要构build(或以其他方式获取)python-devel 2.3并添加到LD_LIBRARY_PATH

我支持python-devel 2.3.7的硬依赖的应用程序。 应用程序运行embedded的python解释器,尝试加载libpython2.3.so – 但由于本地机器在/ usr / lib64下有libpython2.4.so,所以应用程序失败。 我看到有python-devel(但不是版本2.3.x)的RPM。 另一个问题是,我不想覆盖/ usr / lib下的现有python(我没有su)。 我想要做的是放置在我的主目录(即/ home / noahz / lib)中的某个地方,并使用PATH和LD_LIBRARY_PATH指向该应用程序的旧版本。 我试图找出(但似乎无法工艺正确的谷歌search)是​​: 1)我在哪里可以下载python-devel-2.3或libpython2.3.so.1.0(如果有的话) 2a)如果我不能下载python-devel-2.3,我如何从源代码构buildlibpython2.3.so(已经下载了Python-2.3.tgz和 2b)从源代码构buildlibpython2.3.so.1.0,并用LD_LIBRARY_PATH指向它,或者我会遇到其他问题(其他依赖) 3)一般来说,我是否正确地处理这个问题? 附加信息: 我试图符号链接(ln -s)到更高版本。 这导致应用程序默默地失败。 Distro是Red Hat Enterprise Linux 5(RHEL5) – 适用于x86_64

在非标准的位置build立gcc-4.3.4时遇到困难

我需要在非标准位置(NFS挂载)中构buildgcc-4.3.4。 我configuration了: ../gcc-4.3.4/configure –prefix={install dir} –with-gmp={install dir} –with-mpfr={install dir} –with-local-prefix={install dir} –disable-shared 我跑了make -j1 。 但我不断收到: checking for suffix of object files… configure: error: cannot compute suffix of object files: cannot compile 在x86_64-unknown-linux-gnu/libgcc/config.log ,我可以看到: /home/panthdev/apps/gcc-4.3.4-compliant/compiler/objdir/./gcc/cc1: error while loading shared libraries: libmpfr.so.1: cannot open shared object file: No such file or directory libmpfr.so.1在{install dir}/lib 。 另外,如果我将LD_LIBRARY_PATH设置为{install […]