solaris php,针对 Solaris 的安装提示

用户评论:

[#1]

ariedederde [2011-06-18 00:58:25]

Install php on solaris express:

pkg search php

part of output is e.g.

pkg:/web/php-52@5.2.12-0.151.0.1

pkg install php-52

php binary installs in /usr/php/5.2/bin/php

[#2]

julie at baumler dot com [2006-12-28 21:22:35]

There's a great how-to for Solaris 10 from Mel Lester Jr at http://meljr.com/~meljr/AMPSolaris10.html.

It even shows how to install php in a global zone and configure it in your other zones.

[#3]

francois at tekwire dot net [2006-10-06 01:11:48]

A detailed HOWTO document describing how to build Apache & PHP on Solaris is available at http://www.tekwire.net/redir.php/build_apa_php

This document also explains how to build from scratch every piece of software they can depend on, including almost every Apache modules and PHP extensions : Apache 2.0, PHP V4 & V5, zlib, OpenSSL, OpenLDAP, expat, iconv, mod_jk, xml2, xslt, png, jpeg, freetype, bzip2, curl, imap, MySQL, PostgreSQL, mm.

Also includes a cute dependency diagram making clear the relationships between all these libraries.

[#4]

ozone at cname dot com [2006-01-15 09:46:45]

php >= 5.1.1 requires a fully GNU toolchain on solaris; /usr/ccs/bin/ld will fail to link. see bug 35496.

[#5]

AxL [2005-12-19 10:48:07]

If you have problems building php with sqlite on solaris, add "-lrt" library so you dont get the fdatasync undefined symbol error.

[#6]

anacreo [2004-12-17 20:11:59]

Below was copied from a Sun Forum -- if having problems compiling on Solaris 10 try this:

Re: where is ctid_t defined? (Solaris 10)

Author: Juergen.Keil Nov 17, 2004 10:37 AM (reply 1 of 10)

ctid_t is defined in /usr/include/sys/types.h ("typedef id_t ctid_t;").

I guess what has happend is that you're using a gcc compiler that

was build on Solaris 9 (or some other Solaris release older than

Solaris 10 b69), and this gcc release has a set of "fixed" gcc specific

headers that don't match your s10b69 system headers any more.

The fix is to build a fresh set of gcc "fixed" headers:

# cd /opt/sfw/gcc-3/lib/gcc-lib/i386-pc-solaris2.9/3.3.2/install-tools/

# cat > mkheaders.conf

SHELL=/bin/sh

SYSTEM_HEADER_DIR="/usr/include"

OTHER_FIXINCLUDES_DIRS=""

FIXPROTO_DEFINES="-D_XOPEN_SOURCE"

STMP_FIXPROTO="stmp-fixproto"

STMP_FIXINC="stmp-fixinc"

^D

# ./mkheaders

[#7]

xlark at sdf dot lonestar dot org [2003-07-11 19:48:20]

If you do a "Core Install" of Solaris,  be sure you have installed the SUNWlibm and SUNWlibms packages.  PHP 4.2.3 fails to compile without them.

If you get errors with GCC about math.h, then you don't have them installed.

[#8]

ejflores at alcatel dot es [2003-07-03 06:14:37]

./configure not run fine with /usr/ucb/tr you need to install GNU textutils

[#9]

ineves at iportalmais dot pt [2003-03-07 03:09:11]

I have compiled php 4.2.3, on my solaris 9, sparc, it works, i have gcc 3.2.2, from sunfreeware.org, i have compiled with

./configure --prefix=/opt/php --with-apxs=/opt/apache/bin/apxs --with-pgsql=/opt/pgsql --with-imap=/usr/src/soft/imap-2002b --with-ldap --with-imap-ssl=/usr/local/ssl

It compiles, but when i try to run it says something like:

bash-2.05# /opt/apache/bin/apachectl start

Syntax error on line 205 of /opt/apache/conf/httpd.conf:

Cannot load /opt/apache/libexec/libphp4.so into server: ld.so.1: /opt/apache/bin/httpd: fatal: relocation error: file /opt/apache/libexec/libphp4.so: symbol ldap_start_tls_s: referenced symbol not found

/opt/apache/bin/apachectl start: httpd could not be started

This means that the ldap librarys that came with solaris, are not very fine, you should use from openldap.org packages...

it is using this library:

bash-2.05# ldd /opt/apache/libexec/libphp4.so

...

libldap.so.5 =>  /usr/lib/libldap.so.5

his one is from solaris installation.

(sorry about my english)

[#10]

nicos at php dot net [2003-01-06 07:49:21]

Note that you also need GNU sed or you'll have some errors lile "Output line too long."

[#11]

m at hackerz dot uk dot co [2002-10-15 09:49:50]

Compiled Ok on Solaris 9 after the addition of Bison Flex automake and autoconf, adding /usr/local/bin to the path and linking /usr/ccs/bin/ar to /usr/local/bin/ar.

[#12]

php at woodNO-SPAMstea dot com [2002-06-26 11:15:35]

Howard Glynn's post from May 22 is right on - if you're running Solaris 8, make sure you get the latest Recommended patch cluster. I've been struggling with that library problem that happens when you start Apache for several weeks, tweaking the config, setting LD_LIBRARY_PATH, etc. I couldn't believe that the PHP developers wouldn't have the Solaris build right - seems like a fairly important OS. But the latest Solaris patch cluster fixed the problem, so I guess it was my fault for not being up to date. I'm running PHP 4.2.1 now with Apache 2.0.36, works great.

[#13]

ltfrench at vt dot edu [2002-06-09 14:09:31]

To get PHP 4.2.0 or better to make on Solaris 8 (using gcc and gnu autoconf) you need to:

ln -s /usr/local/bin/gcc /usr/local/bin/cc

See: http://bugs.php.net/bug.php?id=16833

[#14]

howardglynn at hotmail dot com [2002-05-22 10:26:36]

I've had a lot of problems with "dn_skipname" reference errors when trying to do a php / apache shared-library install on solaris 8. All compiling was clean, but could not restart apache with mod_php. After much trial and error, I found a solution by installing patch 109326-07 which has some fixes for resolver (I think). I had one web server without the patch, and one with it, and was able to show the same commands compiling, working and restarting on one, but not the other. Installed patch on machine, compiled clean and was up and running after doing this. Works great. Get the patch from sun.com

[#15]

shane dot kinsch at netracorp dot comNOSPAM [2002-02-17 12:49:56]

PHP 4.1.1 / Apache 1.32 Buile Issues (Solaris 2.8)

Apache build options:

./configure --prefix=/usr/local/etc/apache --enable-module=rewrite --enable-shared=rewrite

PHP build options:

./configure --with-mysql=/usr/local/etc/mysql --with-apxs=/usr/local/etc/apache/bin/apxs

Both Apache and PHP compiled without errors and installed cleanly.

The Error when starting Apache:

Syntax error on line 208 of /usr/local/etc/apache/conf/httpd.conf:

Cannot load /usr/local/etc/apache/libexec/libphp4.so into server:

ld.so.1: /usr/local/etc/apache/bin/httpd: fatal: relocation error: file /usr/local/etc/apache/libexec/libphp4.so: symbol dn_skipname: referenced symbol not found ./apachectl start: httpd could not be started

Line 208 in the httpd.conf file is:

LoadModule php4_module        libexec/libphp4.so

The solution:

For some reason, even though LD_LIBRARY_PATH was being set properly,

it wasn't being read fully.  You will need to create a runtime

linking environment by doing this:

#crle -c /var/ld/ld.config -l /usr/lib:/usr/local/lib:/usr/local/etc/mysql/lib

Shane Kinsch

NetraCorp LLC / SecurNET Consulting

[#16]

Louis at ewens dot com [2001-06-22 19:39:27]

On Solaris, if upon starting Apache you get an error like this:

Syntax error on line 33 of /usr/local/apache/conf/httpd.conf:

Cannot load /usr/local/apache/libexec/libphp4.so into server: ld.so.1: /usr/loca

l/apache/bin/httpd: fatal: libmysqlclient.so.10: open failed: No such file or directory

./apachectl start: httpd could not be started

..try inserting the following lines into the configuration section of your apachectl startup shell script:

LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/usr/local/mysql/lib/mysql

export LD_LIBRARY_PATH

Change the /usr/local/mysql/ prefix to where ever your MySQL installation is. Make sure to add on the /lib/mysql extension to your own path though.

Do your normal "apachectl start" command to start Apache and voila, no more error. Apachectl can be found in the bin directory of your Apache installation.

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.mzph.cn/news/550582.shtml

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

php ajax复选框是否选中的值,jquery-ajax - php+ajax分页时,checkbox复选框选中的问题...

目的:所有的数据实现分页显示,不是查询所有的数据,而是每次取固定的条数。而且在每页选中的数据ID都可以保存,一起提交选中的数据,做相应的操作。比如第一页选中2条,第二页选中3条,提交时是5条&…

php 循环大数组 卡死,PHP 大数组循环问题_PHP教程

小妹刚刚改投PHP门下。领导叫我把这段代码的执行效率优化一下我现在知道的优化就是小循环外面,好像在这没啥用。请问各位大侠我该怎么优化ne ? 领导说放内存里什么的。基本就是2个大数组不停的循环算权重。_aItems $aItems;$this->_aMatchs array();$this->…

java在控制台打印余弦曲线,java打印正弦曲线示例

代码如下:/** 绘制0到360的正弦曲线* 分两种情形&#xff0c;y>0和y<0进行绘制* 每种情形中要考虑每行打印两个"*"字符* 并在打印第二个"*"字符后换行*/package hundred;import java.lang.Math;public class SinTest {public static void main(Strin…

matlab中逻辑符号,matlab 逻辑运算符号

逻辑运算符号: 关于符号逻辑的介绍&#xff0c;缺失&#xff1a;matlab运算3699/9符号逻辑又称数理逻辑、理论逻辑。 它是数学的一个分支&#xff0c;是用数学方法研究逻辑或形式逻辑的学科。其研究对象是对证明和计算这两个直观概念进行符号化以后的形式系统。数理逻辑是数学基…

matlab怎么计算行列式,Matlab 线性代数(一)–行列式与方程组求解 | 学步园

1.%用克莱姆法则求解方程组clearninput(方程个数)Ainput(系数矩阵A)binput(常数列向量b)if((size(A)~[n,n])|(size(b)~[n,1])) %判断矩阵A和向量b输入格式是否正确disp(输入不正确&#xff0c;要求A是n阶方阵&#xff0c;b是n维列向量) %disp:显示字符串elseif det(A)0 %判断系…

matlab计算16 1 3近似值,8. 科学计算软件Matlab中默认情况下π为近似值3.1416,该近似值与π真值的( )...

柄残的叶的药密集排列突起可见基和材轮状&#xff0c;学计下π部略膨大根头。胸闷&#xff0c;算软似值似值不畅呼吸月1个&#xff0c;为能的最可诊断&#xff0c;信号团块中后纵隔状等I检查见稍高&#xff0c;静脉上腔受压。白细胞&#xff1a;中真值&#xff0c;当病现声音嘶…

小波基函数构造matlab,五种常见小波基函数及其matlab实现全解.docx

五种常见小波基函数及其matlab实现全解与标准的傅里叶变换相比&#xff0c;小波分析中使用到的小波函数具有不唯一性&#xff0c;即小波函数 具有多样性。小波分析在工程应用中&#xff0c;一个十分重要的问题就是最优小波基的选择问题&#xff0c;因为用不同的小波基分析同一个…

php单下划线的函数,基于PHP函数的操作方法

如下所示&#xff1a;//简单函数function show(){echo "hello";}show();//有参数的函数function show($a){echo "$a";}show("world");//有返回值的函数function show(){return "小V&#xff0c;你好&#xff01;";}echo show();functi…

php 识别图片主色调,PHP 判断图片主色调的简单示例

这篇文章主要为大家详细介绍了PHP 判断图片主色调的简单示例&#xff0c;具有一定的参考价值&#xff0c;可以用来参考一下。这段代码可以帮助你判断任意图片的主色调&#xff0c;使用了简单的统计算法实现 &#xff0c;感兴趣的小伙伴&#xff0c;下面一起跟随512笔记的小编罗…

加密扩展库 php,如何利Mcrypt扩展库进行加密和解密_php

综述&#xff1a;Mcrypt 2.4.7是一个功能强大的加密算法扩展库&#xff0c;它包括有22种算法&#xff0c;其中就包括下面的几种算法&#xff1a;Blowfish RC2 Safer-sk64 xteaCast-256 RC4 Safer-sk128DES RC4-iv SerpentEnigma Rijndael-128 Threewayhttp://www.gaodaima.com/…

java中数组中添加新元素,求解!!!往ArrayList数组里添加元素,貌似没加进去。...

该楼层疑似违规已被系统折叠 隐藏此楼查看此楼points、pointl、pointp、L、P都是数组&#xff0c;分别是点、线、面。它们的关系是&#xff1a;points里包含多个point&#xff0c;L里包含多条pointl&#xff0c;P里包含多个pointp.我想往里面添加点要素。private void addActio…

php中数组下标,PHP数组介绍_php

数组基础&#xff1a;php中&#xff0c;数组的下标可以整数&#xff0c;也可以是字符串php中&#xff0c;数组的元素顺序不是由下标决定&#xff0c;而是由其“加入”的顺序决定定义&#xff1a;$arr1 array(元素1&#xff0c;元素2&#xff0c;。。。。。。);array(1,1.1,5,a…

php支持ssi,让Apache支持SHTML(SSI)的配置方法

shtml和asp有一些相似&#xff0c;以shtml命名的文件里&#xff0c;使用了ssi的一些指令&#xff0c;就像asp中的指令&#xff0c;你可以在SHTML文件中写入SSI指令&#xff0c;当客户端访问这些shtml文件时&#xff0c;服务器端会把这些SHTML文件进行读取和解释&#xff0c;把S…

python 发红包import random用redenv,Python微信发红包编码案例 微信发红包的架构模式 - push博客...

Python手机微信红包优化算法案例#!/usr/bin/env python# coding: utf-8import random# m : 红包个数# n : 红包人数# packet : 本次抢到的金额 , 所有金额以分为计算def redEnvelope(m,n):remain m*100 #剩余金额nn n #剩余人数for i in range(1,n):if remain 0 :print(已经…

oracle hang analyze,hanganalyze 分析数据库挂起

0 概览hanganaylze主要步骤&#xff1a;oradebugsetmypidoradebugunlimit--RAC环境oradebugsetinstall--级别一般指定为3足够了oradebughanganalyze3--RAC环境oradebug-g defdump systemstate10oradebugtracefile_name解读 hanganalyze 报告State of ALL nodes([nodenum]/cnode…

先学Oracle还是Java,事前学习过的java和Oracle笔记没删除的都带过来

一个clientimport java.net.*;import java.io.*;public class client {public static void main(String[] args)throws Exception{Socket ssnew Socket("127.0.0.1",6666);OutputStream osss.getOutputStream();DataOutputStream dosnew DataOutputStream(os);dos.wr…

在电脑搭建oracle服务器端,oracle 服务器端搭建(C#开发环境)

oracle 服务器端搭建(C#开发环境)oracle 服务器端搭建(C#开发环境)常见问题&#xff1a;问&#xff1a;安装plsql 能直接 连接 oracle 服务器端吗&#xff1f;答&#xff1a;32可以直接连接&#xff0c;但是64为需要配置问&#xff1a;下载plsql 对于的版本的选择 是选择64位好…

【网络奇遇记】揭秘计算机网络的性能指标:速率|带宽|吞吐量|时延

&#x1f308;个人主页&#xff1a;聆风吟 &#x1f525;系列专栏&#xff1a;网络奇遇记、数据结构 &#x1f516;少年有梦不应止于心动&#xff0c;更要付诸行动。 文章目录 &#x1f4cb;前言一. 速率1.1 数据量1.2 速率 二. 带宽三. 吞吐量四. 时延4.1 发送时延4.2 传播时延…

Oracle导入ixf文件,Shell读取文本批量导出\导入DB2数据

需求背景&#xff1a;由于DB2 exp\imp数据只能一张表一张表的exp\imp所以通过把所有的表都写在一个exp_imp_db2.txt文件中exp_imp_db2.txt格式如下&#xff1a;(i|e) schema_name table_name src_name ---iimport ;eexportexp_imp_db2.sh#!/bin/shdb2 connect to…

oracle tsn 数据库,【Oracle数据库恢复】ORA-00600[25027]错误解析

ORA-00600[25027]错误的触发原因是ORACLE检测到一个无效的表空间号TSN Tablespace Number或者相对文件号Relative File Number。该ORA-00600[25027]的2个变量各代表&#xff1a;arg[a] Tablespace Number表空间号arg[b] 十进制的相对数据块号Relative Data Block Address (RDBA…