redhat

‘INTMAX_MAX’ was not declared in this scope

匿名 (未验证) 提交于 2019-12-03 08:52:47
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: When Compiling a simple code snippets: test.cpp : #include <stdint.h> #include <stdio.h> int main() { intmax_t max = INTMAX_MAX; printf("%jd", max); return 0; } I get this error: [huqiu@101 ~]$ g++ -o test.o test.cpp test.cpp: In function ‘int main()’: test.cpp:5: error: ‘INTMAX_MAX’ was not declared in this scope What I've done: The compiler information: [huqiu@101 ~]$ which g++ /usr/bin/g++ And the version: [huqiu@101 ~]$ g++ -v Using built-in specs. Target: x86_64-redhat-linux Configured with: ../configure --prefix=/usr --mandir=/usr

Berkeley DB mismatch error while configuring LDAP

[亡魂溺海] 提交于 2019-12-03 08:43:54
I'm configuring OPENLDAP 2.4.35. on Redhat Linux, I have already installed Berkley DB 4.8.30 as a prerequisite. I also checked the version compatibility from OPENLDAP's README file, which says: SLAPD: BDB and HDB backends require Oracle Berkeley DB 4.4 - 4.8, or 5.0 - 5.1. It is highly recommended to apply the patches from Oracle for a given release. Still I'm getting this error: checking db.h usability... yes checking db.h presence... yes checking for db.h... yes checking for Berkeley DB major version in db.h... 4 checking for Berkeley DB minor version in db.h... 8 checking if Berkeley DB

Centos8和7的区别(参照redhat)

寵の児 提交于 2019-12-03 06:48:22
红帽RHEL8与RHEL7的区别 红帽RHEL8和RHEL7功能区别对比 1.1 默认的文件系统 RHEL8与RHEL7都是采用XFS 1.2 RHEL8与RHEL7的内核版本分别是多少 关于内核版本,RHEL8和7的区别如下: RHEL8采用4.18.0-x RHEL7采用3.10-0-x 1.3 内核代码名字 关于内核代码,RHEL8和7的区别如下: RHEL8采用2019-05-07 (Kernel Version 4.18.0-80) RHE7采用2014-06-09 (Kernel Version 3.10.0-123) 1.4 标准/默认的仓库频道 关于仓库频道,RHEL8和7的区别如下: RHEL8 Repo ID: rhel-8-for-x86_64-appstream-rpms Repo Name: Red Hat Enterprise Linux 8 for x86_64 - AppStream (RPMs) Repo ID: rhel-8-for-x86_64-baseos-rpms Repo Name: Red Hat Enterprise Linux 8 for x86_64 - BaseOS (RPMs) RHEL7 Repo ID: rhel-7-server-rpms Repo Name: Red Hat Enterprise Linux 7

How to fix: fatal error: openssl/opensslv.h: No such file or directory in RedHat 7

女生的网名这么多〃 提交于 2019-12-03 06:46:12
问题 I have RedHat Enterprise Linux Server 7, and I downloaded the linux kernel version 4.12.10 which I am trying to compile but when I execute the following command: make modules I get the following error: scripts/sign-file.c:25:30: fatal error: openssl/opensslv.h: No such file or directory Does anyone have an idea to fix this please ? 回答1: To fix this problem, you have to install OpenSSL development package, which is available in standard repositories of all modern Linux distributions. To

Change JENKINS_HOME on Red Hat Linux?

江枫思渺然 提交于 2019-12-03 06:42:13
问题 I used this procedure to install Jenkins: https://wiki.jenkins-ci.org/display/JENKINS/Installing+Jenkins+on+RedHat+distributions After it was up and running I discovered the /var/lib/jenkins partition on my server is very small. I want to move it, but I do not want to change the user that it runs under. I am new to Linux and I'm stumped. How do I move it for example to my Home/Public folder? The "Jenkins" user doesn't seem to have a Home folder. Its running as a daemon on startup, so I have

How to set the rpmbuild destination folder

一曲冷凌霜 提交于 2019-12-03 06:06:12
I noticed rpmbuild (-bb and --buildroot options) creates the .rpm in different locations depending of what OS are you using: GNU/Linux Ubuntu <= 9.04: /usr/src/rpm/... GNU/Linux Ubuntu >= 9.10: /home/rpmbuild/... GNU/Linux Fedora: /usr/src/redhat/... So how can I set manually the destination folder for all OS? Replying myself, adding: %define _rpmdir /outputdir to .spec file. You may want to use the command argument --define : For example, this will send the rpm files into the current directory. rpmbuild anything.spec --bb --define "_rpmdir $(pwd)" This will send the rpmsto output dir rpmbuild

Building OpenLDAP from sources and missing BerkelyDB

夙愿已清 提交于 2019-12-03 05:42:19
问题 I'm building OpenLDAP on a RHEL 5; I used instructions found at http://www.linux.com/archive/feature/113607. All went well, until running './configure' for OpenLDAP - the following error was recorded: *<earlier output snipped>* checking for gethostbyaddr_r... yes checking number of arguments of ctime_r... 2 checking number of arguments of gethostbyname_r... 6 checking number of arguments of gethostbyaddr_r... 8 checking db.h usability... yes checking db.h presence... yes checking for db.h...

On Linux - set maximum open files to unlimited. Possible?

给你一囗甜甜゛ 提交于 2019-12-03 05:13:40
问题 Is it possible to set the maximum number of open files to some "infinite" value or must it be a number? I had a requirement to set the descriptor limit for a daemon user to be "unlimited" and I'm trying to determine if that's possible or how to do it. I've seen some mailing lists refer to a "max" value that can be used (as in: "myuser hard nofile max", but so far the man pages and references I've consulted don't back that up. If I can't use 'max' or similar, I'd like to know how to determine

Segfault on declaring a variable of type vector<shared_ptr<int>>

浪子不回头ぞ 提交于 2019-12-03 04:17:36
Code Here is the program that gives the segfault. #include <iostream> #include <vector> #include <memory> int main() { std::cout << "Hello World" << std::endl; std::vector<std::shared_ptr<int>> y {}; std::cout << "Hello World" << std::endl; } Of course, there is absolutely nothing wrong in the program itself. The root cause of the segfault depends on the environment in which its built and ran. Background We, at Amazon, use a build system which builds and deploys the binaries ( lib and bin ) in an almost machine independent way. For our case, that basically means it deploys the executable

How to install Maven into Red Hat Enterprise Linux 6?

会有一股神秘感。 提交于 2019-12-03 02:46:24
问题 I'm working on a Scientific Linux box and am trying to install Maven using the yum command. Scientific Linux for those of you who do not know is based off of Red Hat Linux Enterprise Edition 6. I'd prefer to install Maven in a way that lent itself to easy updating, that is why I have shied away from simply going to the Apache Maven site and getting the files I need. Simply running yum with root privileges was not enough. I used yum search maven which returned "JPackage Utilities", which I