Jump to content

PECL


iversonm

Recommended Posts

so i am running a vps through network solutions. I had to manually install pear using ssh which worked fine and all is well. now i cant figure out how to get the pecl extension installed and running. any ideas or suggestions?

sidenote my main goal of all if this is i wanted to install memcache

thanks

Link to comment
https://forums.phpfreaks.com/topic/190049-pecl/
Share on other sites

tried it got this error

fatal error:allowed memory size of 8388608 bytes exhausted(tried to allocate 92160 bytes) in /root/PEAR/PEAR/PackageFile/v2/Validator.php on line 912

 

Then go to php.ini and add (or edit the existing) line:

 

memory_limit = 12M

 

That should suffice. Any more needed can be added.

 

well then' date=' I really don't know :) Sorry.. bump the topic till an admin sees it, they're usually the brains of this operation :)[/quote']

 

This stuff is newbie crap, I don't think it needs an expert.

Link to comment
https://forums.phpfreaks.com/topic/190049-pecl/#findComment-1003047
Share on other sites

tried it got this error

fatal error:allowed memory size of 8388608 bytes exhausted(tried to allocate 92160 bytes) in /root/PEAR/PEAR/PackageFile/v2/Validator.php on line 912

 

Then go to php.ini and add (or edit the existing) line:

 

memory_limit = 12M

 

That should suffice. Any more needed can be added.

 

well then' date=' I really don't know :) Sorry.. bump the topic till an admin sees it, they're usually the brains of this operation :)[/quote']

 

This stuff is newbie crap, I don't think it needs an expert.

 

I know that but pecl uses a socket not a file_get_contents therefore it should never reach that limit..

Link to comment
https://forums.phpfreaks.com/topic/190049-pecl/#findComment-1003246
Share on other sites

Run cat /etc/issue or within php echo `cat /etc/issue` .. That should return the distro you are using.Uname won't be of help, as the kernel is unusual to display anything about the distribution unless it is specific.

 

It should be somewhere on your plan or something. But yeah, there's no real reliable way of finding out.

??

Link to comment
https://forums.phpfreaks.com/topic/190049-pecl/#findComment-1003520
Share on other sites

in response to oni-kun the result was

Fedora Core release 6 (Zod)

 

bash$#  yum install memcached

 

Fedora Core 6 for x86_64 (fc6-x86_64)

memcached-1.1.13-5.fc6.rf.x86_64.rpm

Fedora Core 6 for i386 (fc6-i386)

memcached-1.1.13-5.fc6.rf.i386.rpm

 

EDIT: repositories are annoying for synch...

 

 

Link to comment
https://forums.phpfreaks.com/topic/190049-pecl/#findComment-1003541
Share on other sites

lol yum: command not found...

im just missing everything. blah

 

# wget http://linux.duke.edu/projects/yum/download/2.0/yum-2.0.7.tar.gz
# tar -xfv yum-2.0.7.tar.gz
# cd yum-2.0.7...
# ./configure
# make
# make install
# yum list updates
# yum install memcached

Link to comment
https://forums.phpfreaks.com/topic/190049-pecl/#findComment-1003549
Share on other sites

during the make comment here is what was spitted out... should i just keep going and do mae install or did something go really wrong

# make
for subdir in bin etc dovs po ; do \
	make -C $subdir ;\
	done
make[1]: Enterying Directory `/root/ym-2.0.7/bin'
make[1]: Nothing to be done for `all'.
make[1]: leaving directory `/root/yum-2.0.7/bin'
make[1]: Enterying directory `/root/yum-2.0.7/etc'
make[1]: Nothing to be done for `all'.
.........................
so on and so forth
.....................
for cat in cs.po es.po ru.po uk.po' do \
	land=`basename $cat .po`; \
	if msgmerge -v $lang.po yum.pot > $lang.pot ; then \
		mv -f $lang.pot $lang.po ; \
		echo "mesmerge -v of $lang succeeded" ; \
	else \
		echo  "msgmerge -v of $lang failed" ; \
		rm -f $lang.pot ; \
	fi \
done
/bin/sh: lane 2: msgmerge: command not found
msgmerge -v of cs failed
/bin/sh: lane 2: msgmerge: command not found
msgmerge -v of es failed
/bin/sh: lane 2: msgmerge: command not found
msgmerge -v of ru failed
/bin/sh: lane 2: msgmerge: command not found
msgmerge -v of uk failed
msgfmt --statistics --verbose -o cs.mo cs.po
make[1]: msgfmt: Command not found
make[1]: *** [cs.mo] Error 127
make[1]: Leaving Directory `\root\yum-2.0.7\po'
make: *** [all] Error 2

Link to comment
https://forums.phpfreaks.com/topic/190049-pecl/#findComment-1003555
Share on other sites

Ironic anyone? You have to install the gettext package to run msgmerg to install yum to install memcached. Linux is annoying sometimes  ;)

 

ftp://ftp.gnu.org/pub/gnu/gettext/gettext-0.12.1.tar.gz

 

wget that and install it the same way.. then installing yum should work..

Link to comment
https://forums.phpfreaks.com/topic/190049-pecl/#findComment-1003560
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.