07月 27th, 2008  | Tags:

./configure –prefix=/path/mysql

make

make install

在make的时候,遇到

/usr/sfw/lib/gcc/sparc-sun-solaris2.10/3.4.3/../../..//libstdc++.la’ is not a valid libtool archive

解决方法:

编辑/usr/sfw/lib/libstdc++.la,内容如下:

—-

# libstdc++.la - a libtool library file
# Generated by ltmain.sh - GNU libtool 1.4a-GCC3.0 (1.641.2.256 2001/05/28 20:09:07 with GCC-local changes)
#
# Please DO NOT delete this file!
# It is necessary for linking the library.
 
# The name that we can dlopen(3).
dlname=’libstdc++.so.6′
 
# Names of this library.
library_names=’libstdc++.so.6.0.3 libstdc++.so.6 libstdc++.so’
 
# The name of the static archive.
old_library=’libstdc++.a’
 
# Libraries that this one depends upon.
dependency_libs=’-lc -lm -L/usr/sfw/lib -lgcc_s’
 
# Version information for libstdc++.
current=6
age=0
revision=3
 
# Is this an already installed library?
installed=yes
 
# Files to dlopen/dlpreopen
dlopen=”
dlpreopen=”
 
# Directory that this library needs to be installed in:
libdir=’/usr/sfw/lib’

—-

和/usr/sfw/lib/64/libstdc++.la

—-
# libstdc++.la - a libtool library file
# Generated by ltmain.sh - GNU libtool 1.4a-GCC3.0 (1.641.2.256 2001/05/28 20:09:07 with GCC-local changes)
#
# Please DO NOT delete this file!
# It is necessary for linking the library.
 
# The name that we can dlopen(3).
dlname=’libstdc++.so.6′
 
# Names of this library.
library_names=’libstdc++.so.6.0.3 libstdc++.so.6 libstdc++.so’
 
# The name of the static archive.
old_library=’libstdc++.a’
 
# Libraries that this one depends upon.
dependency_libs=’-L/lib/64 -lc -lm -L/usr/sfw/lib/64 -lgcc_s’
 
# Version information for libstdc++.
current=6
age=0
revision=3
 
# Is this an already installed library?
installed=yes
 
# Files to dlopen/dlpreopen
dlopen=”
dlpreopen=”
 
# Directory that this library needs to be installed in:
libdir=’/usr/sfw/lib/64′
—-

注意: 去掉文件首尾的—-

Popularity: 19% [?]

07月 26th, 2008  | Tags:

nslookup笔记

1, set type=ns
查询某个域名的NS记录信息

2, set type=soa

输入.,就可以列出所有的根域服务器

3, set type=a

Popularity: 19% [?]

07月 1st, 2008  | Tags:
  • 指定行插入

在filename文件的第28行插入’print input text’这段文本.

sed ‘{         
28 i\
print input text
}’ -i filename

  • 整行替换

将包含有text的行整行替换为‘new text’

sed -e ’s/.*text.*/new text/g’ -i filename

  • 含有变量的替换

sed -e "s/text/$test/g" -i filename

注意,一定要用",不能用’。否则无法识别变量名

Popularity: 35% [?]

06月 29th, 2008  | Tags:

今天下午听了蒋昌健做的演讲,主题是<<沟通与说服>>。因为感觉我自己最欠缺的就是这方面,所以就认真的听了两遍。

下面是我整理的笔记:

关于沟通

1, 微笑和倾听

  • 人为什么要长两只耳朵一张嘴,就是让你少说多听。
  • 听别人表达意见的时候,一定要耐心,并保持微笑。耐心的听完别人的完整的意见。

2, 对于级别平等,但态度高傲的人,一定要用更渊博的学识和涵养去打败他。而不要被激怒。去硬对抗。

3, 沟通的原则就是要从一开始就避免把沟通对象放在自己的对立面。通过沟通,来找到双赢的空间。这样沟通才有可能成功

4, 情绪的控制和原则的表述

  • 永远不要在情绪失控的时候,去做决定
  • 表达意见的态度要有节制

5, 适当的使用自己的肢体语言

6, 对于人和事要区分对待。对事的态度要严谨,对于人要宽容

7, 从动容到动心,从动心到动人

  • 抗震救灾,温家宝在第一时间赶到现场,拿着小孩子的书包和鞋子,当时就流下了眼泪。温家宝的动容,打动了全中国人的心。

8, 沟通有三种角度,以上对下,以下对上,平等沟通。沟通效果最好的是平等沟通。沟通效果最差的是以下对上的沟通,战战兢兢的与人沟通的效果是最差的。

9, 沟通时最能打动人的是你的自信。

 

关于说服:

1,说服最有效果的是让说服对象有图像感。效果最好的是图像。

      PS: 除了图像,数字也很有说服力

2,健康,积极而充满幽默的人,说服力会比较强。在沟通的过程中,展现自己的感染力。很多时候不是观点打动人,而是表达观点的人打动人

3,说服不要放弃重复

4,说服要做好功课。做好充分的准备,预计到各种困难的情况

 

另外两点很重要的观点:

1, 不要谈论别人的不足。

2, 在和别人沟通的时候,要尽量消除位阶的概念。营造平等的氛围

Popularity: 37% [?]

06月 25th, 2008  | Tags:
  • RHEL5上安装PHP时出现

    /php-4.4.7/sapi/cli/php: error while loading shared libraries: /usr/local/gd/lib/libgd.so.2: cannot restore segment prot after reloc: Permission denied

    原因是selinux限制了引用这个类库,解决办法有如下两个

    1. 使用chcon 命令
    示例: chcon -t texrel_shlib_t /usr/local/gd/lib/libgd/*.so.2

    2. 禁止掉SELinux
    更改/etc/sysconfig/selinux 文件的内容为 SELINUX=disabled, 然后reboot

    这个GD库的问题,在装好后启动apache的时候,还会提示php库的问题,用上面的同样方法处理即可.

  •  

Popularity: 41% [?]

Top