小编Pet*_*ean的帖子

使用'shared'选项编译OpenSSL?

在CentOS 5.4上,OpenSSL在没有"共享"选项的情况下编译得很好.但是当我通过该选项时,编译失败了:

/ usr/bin/ld:libcrypto.a(x86_64-gcc.o):在创建共享对象时,不能使用针对"本地符号"的重定位R_X86_64_32; 用-fPIC重新编译

当我尝试:./config shared CFLAGS=-fPIC 这不起作用.

我可以做些什么来使用'shared'选项来编译OpenSSL?

谢谢

apache openssl

26
推荐指数
3
解决办法
2万
查看次数

在CentOS上与Postgres 8.4.3准备交易

我在本地postgres.config中将'max_prepared_transactions'设置为20,但事务失败并出现以下错误跟踪(但仅限在Linux上).因为在Windows中,相同的代码无缝地工作,如果这不是许可问题,我就会徘徊.什么是解决方案?谢谢彼得

372300 [Atomikos:7] WARN atomikos - XA resource 'XADBMS': rollback for XID '3137332E3230332E3132362E3139302E746D30303030313030303037:3137332E3230332E3132362E3139302E746D31' raised -3: the XA resource detected an internal error
org.postgresql.xa.PGXAException: Error rolling back prepared transaction
        at org.postgresql.xa.PGXAConnection.rollback(PGXAConnection.java:357)
        at com.atomikos.datasource.xa.XAResourceTransaction.rollback(XAResourceTransaction.java:873)
        at com.atomikos.icatch.imp.RollbackMessage.send(RollbackMessage.java:90)
        at com.atomikos.icatch.imp.PropagationMessage.submit(PropagationMessage.java:86)
        at com.atomikos.icatch.imp.Propagator$PropagatorThread.run(Propagator.java:62)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:651)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:676)
        at java.lang.Thread.run(Thread.java:595)
Caused by: org.postgresql.util.PSQLException: ERROR: prepared transaction with identifier "1096044365_MTczLjIwMy4xMjYuMTkwLnRtMDAwMDEwMDAwNw==_MTczLjIwMy4xMjYuMTkwLnRtMQ==" does not exist
        at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:2062)
        at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:1795)
        at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:257)
        at org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.java:479)
        at org.postgresql.jdbc2.AbstractJdbc2Statement.executeWithFlags(AbstractJdbc2Statement.java:353)
        at org.postgresql.jdbc2.AbstractJdbc2Statement.executeUpdate(AbstractJdbc2Statement.java:299)
        at org.postgresql.xa.PGXAConnection.rollback(PGXAConnection.java:347)

postgresql xa atomikos

7
推荐指数
1
解决办法
5997
查看次数

tomcat startup.sh找不到JAVA_HOME

在启动Tomcat 6.0作为服务时,我对CentOs 5.4上的这种奇怪行为感到有些困惑

我在/etc/init.d/tomcat添加了一个脚本,它可以用用户'tomcat'启动/停止/重启Apache Tomcat 6.0,并将其注册为服务.该服务的问题是我得到了'既未定义JAVA_HOME也未定义JRE_HOME环境变量'.但是当输入'sudo -u tomcat echo $ JAVA_HOME'时,我得到'/usr/java/jdk1.5.0_22'这是正确的,因为我使用的是JDK.我该怎么办?

tomcat

5
推荐指数
2
解决办法
2万
查看次数

Apache LoadBalancing,粘性会话和Spring安全框架

我有一个面向公众的Apache 2.2网络服务器,我已将其配置为代理并平衡对Tomcat 6.0上部署的后端Web应用程序的请求.我使用Spring FW + Spring安全框架作为技术堆栈,因此应用程序使用带有jsessionid的cookie.下面的代码片段来自Apache配置:

ServerName abc.mydomain.com

ProxyRequests Off
ProxyPass / balancer://mycluster/ stickysession=JSESSIONID|jsessionid nofailover=On scolonpathdelim=On
ProxyPassReverse / balancer://mycluster/

<Proxy balancer://mycluster >
    BalancerMember http://10.179.40.165:8080/abc
</Proxy>

<Proxy *>
    Order deny,allow
    Allow from all
</Proxy>

<Location />
    Order allow,deny
    Allow from all
</Location>
Run Code Online (Sandbox Code Playgroud)

问题是,在成功登录后,Spring Security将在任何请求上重定向到无效的会话URL.我该怎么做才能解决问题?谢谢

彼得

apache2 spring-security

5
推荐指数
1
解决办法
2753
查看次数

Poppler 0.14.1构建问题

我无法从CentOS 5.4上的源代码构建Poppler 0.14.1.当我这样做./configure它结束时会收到如下消息:

检查FONTCONFIG ... configure:错误:未满足包要求(fontconfig> = 2.0.0):

我已经从源代码中成功构建并安装了

fontconfig 2.8.0

在该计算机上,并将PKG_CONFIG设置为指向包含fontconfig.pc(/ usr/local/lib/pkgconfig /)的文件夹.

确实,当我执行$ PKG_CONFIG --version fontconfig时,它会获得echos'0.20',但fontconfig.pc确实写了该库的版本是2.8.0.还有没有其他的libfontconfig.so然后从该机器上的源代码构建一个,所以我有点卡住,不知道该怎么做(调试配置除外)

以前有人解决了类似的案子吗?谢谢

彼得

linux poppler

2
推荐指数
1
解决办法
2398
查看次数