Could not open extension control file ‘pgcrypto.control’

Im now working on PostgreSQL on EL6

Im tring to create extension pgcrypto to store passwd.

failed. with following message

the fix is to reinstall postgresql94-contrib

Package postgresql94-contrib.x86_64 0:9.4.4-1PGDG.rhel6 will be installed

Fedora15 VIM安装Vundle和YouCompleteMe

这是一篇中文日志。

我要修改我的Fedora15节点上的vim配置,使用Vundle和YouCompleteMe.

下面是我在EL6/7上都使用的vimrc

https://github.com/asmca/zvimd/blob/master/new/vimrc
下载到~/.vimrc

然后, 安装Vundle

然后进入Vim界面, :VundleInstall

很重要的一点是Fc15已经很旧了,而且我又是一个重度RPM爱好者。 所以就有了下面的步骤

1) vim 版本过旧
当前版本是: vim-enhanced-7.3.315-1.fc15.x86_64
以下插件不兼容
UltiSnips requires Vim >= 7.4
YouCompleteMe unavailable: requires Vim 7.3.584+

索性选择较新的版本7.4.5
https://kojipkgs.fedoraproject.org//packages/vim/7.4.5/1.fc20/src/vim-7.4.5-1.fc20.src.rpm
然后

就正常升级了vim包, 而且近期的使用基本都没问题了。

2). YouCompleteMe可以直接安装即可, 但如果用–system-libclang 系统自带的clang版本就过旧了。

下载源包:
https://kojipkgs.fedoraproject.org//packages/llvm/3.4.2/3.el6/src/llvm-3.4.2-3.el6.src.rpm

需要修改一下spec包, 将lldb和gold去掉(因为这个rpm包里没有对应的源码)

然后rpm -bb llvm.spec

就能得到对应的rpm包

安装时候可能会遇到类似下面的错误

其实不用太关心, 我们只需要强制升级 clang 和llvm.x64相关的包。

然后对于相关的包,攺一下链接

升级完clang包,然后进入YouCompleteMe目录安装,

3). CMake版本问题
CMake Error at CMakeLists.txt:28 (cmake_minimum_required):
CMake 2.8.11 or higher is required.  You are running version 2.8.5
这个问题的话: 从这里下载RPM包
https://kojipkgs.fedoraproject.org//packages/cmake/2.8.12.2/2.fc21/src/cmake-2.8.12.2-2.fc21.src.rpm

因为我不用emacs,所以我修改了spec文件,将emacs相关的依赖删除了。
否则可以用
yum-builddep cmake-2.8.12.2-2.fc21.src.rpm来自己解决依赖

rpmbuild -bb cmake.spec 然后安装cmake包。

 
4) 至于boost, 如果使用到的话,我建议可以升级系统自带的boost包。版本过低。
https://kojipkgs.fedoraproject.org//packages/boost/1.57.0/8.fc23/src/boost-1.57.0-8.fc23.src.rpm

修改一下spec, 去除python3和mpich ,编译顺利

会发现旧的包有依赖

 

就强制升级

然后就可以用 下面语句编译 YouCompleteMe

 

Install cmake-2.8.12 on EL7

here, Im installing vim plugin YCM and hit cmake version issue.

Step to fix:
1. fetch src.rpm
https://kojipkgs.fedoraproject.org//packages/cmake/2.8.12/3.fc21/src/cmake-2.8.12-3.fc21.src.rpm

2.  build/rebuild

3. install new generated package.

4. also I v put my rpms here:
Link:
http://pan.baidu.com/s/1o6OB8ro

EL7/src.RPMs_IF_YOU_NEED/cmake-2.8.12-3.fc21.src.rpm
/rpm/
cmake-2.8.12-3.el7.centos.x86_64.rpm
cmake-debuginfo-2.8.12-3.el7.centos.x86_64.rpm
cmake-doc-2.8.12-3.el7.centos.x86_64.rpm
cmake-gui-2.8.12-3.el7.centos.x86_64.rpm

Exadata shows error on kfod

Following is an example which configured on Exadata issue.

kfod shows segment fault.

Dump file /oraTB/base/diag/kfod/user_oracle/host_1620649457_93/incident/incdir_81/ora_95934_140163329665856_i81.trc
[TOC00000]
Jump to table of contents
Dump continued from file: /oraTB/base/diag/kfod/user_oracle/host_1620649457_93/trace/ora_95934_140163329665856.trc
[TOC00001]
oci-24550 [11] [[si_signo=11] [si_errno=0] [si_code=1] [si_int=1364841332] [si_ptr=0x7f7a5159d374] [si_addr=0x18]] [] [] [] [] [] [] [] [] [] []
[TOC00001-END]
[TOC00002]
========= Dump for incident 81 (oci 24550) ========
Starting a Diag Context default dump (level=3)

—– Incident Context Dump —–
Address: 0x7fff8c1392f0
Incident ID: 81
Problem Key: oci 24550
Error: oci-24550 [11] [[si_signo=11] [si_errno=0] [si_code=1] [si_int=1364841332] [si_ptr=0x7f7a5159d374] [si_addr=0x18]] [] [] [] [] [] [] [] [] [] []
[00]: dbgePostErrorDirectVaList_int [diag_dde]
[01]: dbgePostErrorDirect [diag_dde]
[02]: kpeDbgSignalHandler []<– Signaling
[03]: skgesig_sigactionHandler []
[04]: __sighandler []
[05]: kgfdTerm [KGF]
[06]: kfodddTerm []
[07]: kfodddInit []
[08]: kfodExecute []
[09]: kfod_main []
[10]: lpmcall []
[11]: lpmpmai []
[12]: main []
[13]: __libc_start_main []

check kfod log:
Trace file /oraTB/base/diag/kfod/user_oracle/host_1620649457_93/trace/ora_95934_140163329665856.trc
OSSIPC:SKGXP:[1378fb0.0]{0}: ifconfig_int(3047a8c0) failed with 0.
OSSIPC:SKGXP:[1378fb0.1]{0}: skgxpcini: Invalid IP address [192.168.71.48] provided
OS system dependent operation:if_not_found failed with status: 0
OS failure message: Error 0
failure occurred at: skgxpvaddr9
additional information: requested interface 192.1xx.71.48 not found. Check output from ifconfig command
DDE: Flood control is not active
2015-06-22T22:39:25.137052+18:00
Incident 81 created, dump file: /oraTB/base/diag/kfod/user_oracle/host_1620649457_93/incident/incdir_81/ora_95934_140163329665856_i81.trc
oci-24550 [11] [[si_signo=11] [si_errno=0] [si_code=1] [si_int=1364841332] [si_ptr=0x7f7a5159d374] [si_addr=0x18]] [] [] [] [] [] [] [] [] [] []

 

Fix:
check that this ip 71.48 is on 1st node, while current ip should be 71.49.

change following cellinit ip to 49

#cat /etc/oracle/cell/network-config/cellinit.ora
ipaddress1=192.168.71.48/21