PCRE error

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

Post Reply
joek
Posts: 10
Joined: Thu Oct 07, 2004 2:33 pm

PCRE error

Post by joek »

With a FC3 minimal install, i add the following packages through yum:
gcc
gcc-c++
net-snmp
net-snmp-utils
net-snmp-devel
pcre-devel 4.5-3
libpng-devel
libjpeg-devel
freetype-devel
openldap-devel
openssl-devel
ncurses-devel
flex
pkgconfig

and build the following from source:
rrdtool
freetds
mysql 4.1
apache 2.0.52
php 4.3.10
cacti 0.8.6c

the error that i get is this:
Warning: preg_match_all: internal pcre_fullinfo() error -3 in /usr/local/apache2/htdocs/cacti-0.8.6c/lib/functions.php on line 1392


some things i've tried:
building pcre-5 from source
building older cacti versions from source
building php 5 from source

nothing seems to eliminate this error message, which prevents me from using cacti
joek
Posts: 10
Joined: Thu Oct 07, 2004 2:33 pm

fc1

Post by joek »

i doubt it's FC3 or it's default and updated packages...because i did a FC1 fresh install today, with the same procedures and i get the same error
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

I would say you are missing a package that allows php to use regular expression. But, I'm not sure if that is the issue and if it was, I'm not sure of what packages would have it.

Search the php site/forums for answers?
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
joek
Posts: 10
Joined: Thu Oct 07, 2004 2:33 pm

php

Post by joek »

it may have been php itself
i tried 4.3.10 and 5
i just tried 4.3.8 and i don't get the error, but now i have SNMP problems
i can do an snmpwalk from the box, but cacti will not do SNMP queries.

does this have to do with permissions? httpd runs as user/group www
joek
Posts: 10
Joined: Thu Oct 07, 2004 2:33 pm

snmp error

Post by joek »

httpd error logs say:
/usr/local/php/bin/snmpget doesn't exist but my path is set to /usr/bin/snmpget in cacti
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

/boggle

Ok, you guys are coming up with some stumpers today...

Ok, I don't know why it's appending the path like that. Check out your /etc/php.ini file. See of some sort of path configuration variable is screwing things up.
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
joek
Posts: 10
Joined: Thu Oct 07, 2004 2:33 pm

path problem

Post by joek »

i linked to the real binaries from that directory at it works.
BUT i don't want to have to do that. ha
joek
Posts: 10
Joined: Thu Oct 07, 2004 2:33 pm

appending

Post by joek »

yes. now poller.php/cactid are appending /usr/local/php/bin/rrdtool when my path is totally different
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

I would go after the /etc/php.ini file.

Make sure that Safe Mode is turned off. Otherwise, I'm not sure what will happen.. ;)
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
joek
Posts: 10
Joined: Thu Oct 07, 2004 2:33 pm

safe mode

Post by joek »

safe mode must have been it thanks.
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

Yah!

One of 3 mystery problems solved.

*mental note, safe mode is good, but bad for cacti*

*will have to see if that can be fixed*
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests