You are not logged in.

#1 2012-08-06 12:33:59

PolishHurricane
Member
Registered: 2011-02-02
Posts: 47

pacman removed php curl module? Wha?

Did some pacman updates on Friday, came in today and /usr/lib/php/modules/curl.so was missing.  I have PHP 5.4.5.

So I ran some pacman...

[root modules]# pacman -R php-curl
error: target not found: php-curl
[root modules]# pacman -S php-curl
warning: php-5.4.5-1 is up to date -- reinstalling
resolving dependencies...
looking for inter-conflicts...

Targets (1): php-5.4.5-1

Total Installed Size:   14.63 MiB
Net Upgrade Size:       0.00 MiB

Proceed with installation? [Y/n] y
[root@Crux modules]# pwd
/usr/lib/php/modules
[root@Crux modules]#

Shouldn't PHP include php-curl?  How do I get my module back?

Last edited by PolishHurricane (2012-08-06 13:22:21)

Offline

#2 2012-08-06 12:40:34

progandy
Member
Registered: 2012-05-17
Posts: 5,307

Re: pacman removed php curl module? Wha?

php-curl is now a part of the php package, so the package php-curl does not exist anymore. Try to reinstall php.

Last edited by progandy (2012-08-06 12:40:57)


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' | alias ENGLISH='LANG=C.UTF-8 ' |

Offline

#3 2012-08-06 13:21:59

PolishHurricane
Member
Registered: 2011-02-02
Posts: 47

Re: pacman removed php curl module? Wha?

PolishHurricane wrote:

warning: php-5.4.5-1 is up to date -- reinstalling

Isn't that what I did?  Or is there another way?

[root modules]# pacman -S php
warning: php-5.4.5-1 is up to date -- reinstalling
resolving dependencies...
looking for inter-conflicts...

Targets (1): php-5.4.5-1

Total Installed Size:   14.63 MiB
Net Upgrade Size:       0.00 MiB

Proceed with installation? [Y/n] y
(1/1) checking package integrity                   [######################] 100%
(1/1) loading package files                        [######################] 100%
(1/1) checking for file conflicts                  [######################] 100%
(1/1) checking available disk space                [######################] 100%
(1/1) upgrading php                                [######################] 100%

Last edited by PolishHurricane (2012-08-06 15:05:05)

Offline

#4 2012-08-06 13:32:26

Awebb
Member
Registered: 2010-05-06
Posts: 6,688

Re: pacman removed php curl module? Wha?

$ pkgfile curl.so
extra/php
community/collectd

It's part of the php package in extra. Try removing php and adding it again, not just reinstalling. I have yet to hear about such a quirk in pacman, but one never knows.

Offline

#5 2012-08-06 13:36:13

PolishHurricane
Member
Registered: 2011-02-02
Posts: 47

Re: pacman removed php curl module? Wha?

Ah...

error_log:PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/modules/curl.so' - /lib/libc.so.6: version `GLIBC_2.16' not found

hmmm perhaps to do with that glib problem I had: http://www.archlinux.org/news/the-lib-d … a-symlink/

Offline

#6 2012-08-06 13:41:56

Awebb
Member
Registered: 2010-05-06
Posts: 6,688

Re: pacman removed php curl module? Wha?

Either that or your mirror is out of sync. Try another mirror and update with -Syyu, not just -Syu.

Offline

#7 2012-08-06 13:47:56

PolishHurricane
Member
Registered: 2011-02-02
Posts: 47

Re: pacman removed php curl module? Wha?

Didn't do anything :'(

I guess I'm not the only person with this problem...

https://bbs.archlinux.org/viewtopic.php?pid=1142382
https://bbs.archlinux.org/viewtopic.php?pid=1140588

Last edited by PolishHurricane (2012-08-06 13:48:23)

Offline

#8 2012-08-06 14:09:43

progandy
Member
Registered: 2012-05-17
Posts: 5,307

Re: pacman removed php curl module? Wha?

What is the output of ldd --version? If the version is less than 2.16, then do the following, then make a system update with a new mirror and follow the instructions in the news regarding /lib.

cd /tmp
wget http://pkgbuild.com/~allan/glibc-2.16.0-1-`uname -m`.pkg.tar.xz
sudo pacman -U glibc-2.16.0-1-`uname -m`.pkg.tar.xz

| alias CUTF='LANG=en_XX.UTF-8@POSIX ' | alias ENGLISH='LANG=C.UTF-8 ' |

Offline

#9 2012-08-06 14:27:14

PolishHurricane
Member
Registered: 2011-02-02
Posts: 47

Re: pacman removed php curl module? Wha?

[root tmp]# pacman -U glibc-2.16.0-1-`uname -m`.pkg.tar.xz
loading packages...
warning: downgrading package glibc (2.16.0-2 => 2.16.0-1)
resolving dependencies...
looking for inter-conflicts...

Targets (1): glibc-2.16.0-1

Total Installed Size:   33.95 MiB
Net Upgrade Size:       0.00 MiB

Proceed with installation? [Y/n] y
(1/1) checking package integrity                                      [######################################] 100%
(1/1) loading package files                                           [######################################] 100%
(1/1) checking for file conflicts                                     [######################################] 100%
error: failed to commit transaction (conflicting files)
glibc: /lib/ld-linux.so.2 exists in filesystem
glibc: /lib/libBrokenLocale.so.1 exists in filesystem
glibc: /lib/libanl.so.1 exists in filesystem
glibc: /lib/libc.so.6 exists in filesystem
glibc: /lib/libcidn.so.1 exists in filesystem
glibc: /lib/libcrypt.so.1 exists in filesystem
glibc: /lib/libdl.so.2 exists in filesystem
glibc: /lib/libm.so.6 exists in filesystem
glibc: /lib/libnsl.so.1 exists in filesystem
glibc: /lib/libnss_compat.so.2 exists in filesystem
glibc: /lib/libnss_db.so.2 exists in filesystem
glibc: /lib/libnss_dns.so.2 exists in filesystem
glibc: /lib/libnss_files.so.2 exists in filesystem
glibc: /lib/libnss_hesiod.so.2 exists in filesystem
glibc: /lib/libnss_nis.so.2 exists in filesystem
glibc: /lib/libnss_nisplus.so.2 exists in filesystem
glibc: /lib/libpthread.so.0 exists in filesystem
glibc: /lib/libresolv.so.2 exists in filesystem
glibc: /lib/librt.so.1 exists in filesystem
glibc: /lib/libthread_db.so.1 exists in filesystem
glibc: /lib/libutil.so.1 exists in filesystem
Errors occurred, no packages were upgraded.
[root tmp]#

Last edited by PolishHurricane (2012-08-06 14:28:13)

Offline

#10 2012-08-06 14:39:59

progandy
Member
Registered: 2012-05-17
Posts: 5,307

Re: pacman removed php curl module? Wha?

Good. You did not force the installation. Now, what is the ouput of ldd --version? You should have installed glibc 2.16.0-2 since 2.16.0-1 initiated a (failed) downgrade. I think you should try to reinstall the current version of glibc: pacman -S glibc


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' | alias ENGLISH='LANG=C.UTF-8 ' |

Offline

#11 2012-08-06 15:04:52

PolishHurricane
Member
Registered: 2011-02-02
Posts: 47

Re: pacman removed php curl module? Wha?

[root modules]# ldd --version
ldd (GNU libc) 2.16
Copyright (C) 2012 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Written by Roland McGrath and Ulrich Drepper.
[root modules]# ^C
[root modules]# pacman -S glibc
warning: glibc-2.16.0-2 is up to date -- reinstalling
resolving dependencies...
looking for inter-conflicts...

Targets (1): glibc-2.16.0-2

Total Installed Size:   33.94 MiB
Net Upgrade Size:       0.00 MiB

Proceed with installation? [Y/n] y
(1/1) checking package integrity                                      [######################################] 100%
(1/1) loading package files                                           [######################################] 100%
(1/1) checking for file conflicts                                     [######################################] 100%
(1/1) checking available disk space                                   [######################################] 100%
(1/1) upgrading glibc                                                 [######################################] 100%
Generating locales...
  en_US.UTF-8... done
  en_US.ISO-8859-1... done
Generation complete.

Am I doing it correctly?  Anyway, I restart Apache and it still fails to load.

Last edited by PolishHurricane (2012-08-06 15:05:47)

Offline

#12 2012-08-07 18:52:04

PolishHurricane
Member
Registered: 2011-02-02
Posts: 47

Re: pacman removed php curl module? Wha?

WORKAROUND!

http://stackoverflow.com/questions/1184 … mmand-line

Last edited by PolishHurricane (2012-08-09 16:20:25)

Offline

Board footer

Powered by FluxBB