Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
 Post subject: Php GD library
PostPosted: Sat Jun 12, 2010 5:25 pm 
Offline
Senior Newbie

Joined: Thu May 27, 2010 9:00 am
Posts: 14
my linode does not have the php5-gd library installed.

I executed
Code:
sudo apt-get install php5-gd


That yielded the following result
Quote:
The following packages have unmet dependencies:
php5-gd: Depends: phpapi-20090626+lfs
Depends: php5-common (= 5.3.2-1ubuntu4.2) but 5.2.10.dfsg.1-2ubuntu6 is to be installed


Can someone please help me with this issue ?


Top
   
 Post subject: Re: Php GD library
PostPosted: Sat Jun 12, 2010 5:36 pm 
Offline
Senior Member

Joined: Fri Feb 18, 2005 4:09 pm
Posts: 594
sisko wrote:
Can someone please help me with this issue ?


worked for me on Lucid Lynx after an "apt-get update" and an "apt-get upgrade" as shown below:
Quote:
root@none:~ # apt-get install php5-gd
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
libapache2-mod-php5 php5-common
Suggested packages:
php-pear php5-suhosin
The following NEW packages will be installed:
libapache2-mod-php5 php5-common php5-gd
0 upgraded, 3 newly installed, 0 to remove and 2 not upgraded.
Need to get 3407kB of archives.
After this operation, 8925kB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://archive.ubuntu.com/ubuntu/ lucid/main php5-common 5.3.2-1ubuntu4 [541kB]
Get:2 http://archive.ubuntu.com/ubuntu/ lucid/main libapache2-mod-php5 5.3.2-1ubuntu4 [2831kB]
Get:3 http://archive.ubuntu.com/ubuntu/ lucid/main php5-gd 5.3.2-1ubuntu4 [34.7kB]
Fetched 3407kB in 2s (1484kB/s)
Selecting previously deselected package php5-common.
(Reading database ... 124232 files and directories currently installed.)
Unpacking php5-common (from .../php5-common_5.3.2-1ubuntu4_i386.deb) ...
Selecting previously deselected package libapache2-mod-php5.
Unpacking libapache2-mod-php5 (from .../libapache2-mod-php5_5.3.2-1ubuntu4_i386.deb) ...
Selecting previously deselected package php5-gd.
Unpacking php5-gd (from .../php5-gd_5.3.2-1ubuntu4_i386.deb) ...
Setting up php5-common (5.3.2-1ubuntu4) ...
Setting up libapache2-mod-php5 (5.3.2-1ubuntu4) ...

Creating config file /etc/php5/apache2/php.ini with new version
* Reloading web server config apache2


Are you using Lucid Lynx?

James


Top
   
 Post subject: Re: Php GD library
PostPosted: Sat Jun 12, 2010 6:09 pm 
Offline
Senior Newbie

Joined: Thu May 27, 2010 9:00 am
Posts: 14
zunzun wrote:
sisko wrote:
Can someone please help me with this issue ?


worked for me on Lucid Lynx after an "apt-get update" and an "apt-get upgrade" as shown below:
Quote:
root@none:~ # apt-get install php5-gd
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
libapache2-mod-php5 php5-common
Suggested packages:
php-pear php5-suhosin
The following NEW packages will be installed:
libapache2-mod-php5 php5-common php5-gd
0 upgraded, 3 newly installed, 0 to remove and 2 not upgraded.
Need to get 3407kB of archives.
After this operation, 8925kB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://archive.ubuntu.com/ubuntu/ lucid/main php5-common 5.3.2-1ubuntu4 [541kB]
Get:2 http://archive.ubuntu.com/ubuntu/ lucid/main libapache2-mod-php5 5.3.2-1ubuntu4 [2831kB]
Get:3 http://archive.ubuntu.com/ubuntu/ lucid/main php5-gd 5.3.2-1ubuntu4 [34.7kB]
Fetched 3407kB in 2s (1484kB/s)
Selecting previously deselected package php5-common.
(Reading database ... 124232 files and directories currently installed.)
Unpacking php5-common (from .../php5-common_5.3.2-1ubuntu4_i386.deb) ...
Selecting previously deselected package libapache2-mod-php5.
Unpacking libapache2-mod-php5 (from .../libapache2-mod-php5_5.3.2-1ubuntu4_i386.deb) ...
Selecting previously deselected package php5-gd.
Unpacking php5-gd (from .../php5-gd_5.3.2-1ubuntu4_i386.deb) ...
Setting up php5-common (5.3.2-1ubuntu4) ...
Setting up libapache2-mod-php5 (5.3.2-1ubuntu4) ...

Creating config file /etc/php5/apache2/php.ini with new version
* Reloading web server config apache2


Are you using Lucid Lynx?

James


Yes, I am on Lucid Lynx ( ubuntu 10 ).

I tried the 3 commands you suggested but I got the same result


Top
   
 Post subject: Bump
PostPosted: Sun Jun 13, 2010 5:55 am 
Offline
Senior Newbie

Joined: Thu May 27, 2010 9:00 am
Posts: 14
Guys,

please help if you can. This issue is holding up all my work !


Top
   
 Post subject:
PostPosted: Mon Jun 14, 2010 3:13 pm 
Offline
Senior Member

Joined: Wed Feb 13, 2008 2:40 pm
Posts: 126
Post your /etc/apt/sources.list and /etc/apt/preferences (if it exists)


Top
   
 Post subject:
PostPosted: Wed Jun 16, 2010 8:01 am 
Offline
Senior Newbie

Joined: Wed Jun 16, 2010 7:44 am
Posts: 7
Website: http://sgustokstudio.com/
Alucard wrote:
Post your /etc/apt/sources.list and /etc/apt/preferences (if it exists)


/etc/apt/sources.list:

Code:
## main & restricted repositories
deb http://us.archive.ubuntu.com/ubuntu/ lucid main restricted
deb-src http://us.archive.ubuntu.com/ubuntu/ lucid main restricted

deb http://security.ubuntu.com/ubuntu lucid-security main restricted
deb-src http://security.ubuntu.com/ubuntu lucid-security main restricted

## universe repositories
deb http://us.archive.ubuntu.com/ubuntu/ lucid universe
deb-src http://us.archive.ubuntu.com/ubuntu/ lucid universe
deb http://us.archive.ubuntu.com/ubuntu/ lucid-updates universe
deb-src http://us.archive.ubuntu.com/ubuntu/ lucid-updates universe

deb http://security.ubuntu.com/ubuntu lucid-security universe
deb-src http://security.ubuntu.com/ubuntu lucid-security universe



it is written here: http://library.linode.com/web-applicati ... 0.04-lucid

and when I try to install gd:

Code:
apt-get update
apt-get upgrade --show-upgraded
apt-get install php5-gd


Returns:

Code:
root@sgustok:/# apt-get install php5-gd
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
  php5-gd: Depends: php5-common (= 5.3.2-1ubuntu4) but 5.3.2-1ubuntu4.2 is to be installed
E: Broken packages


I have Ubuntu 10.04.

What can I do to install gd?


Top
   
 Post subject:
PostPosted: Wed Jun 16, 2010 8:53 am 
Offline
Junior Member

Joined: Sat Jul 11, 2009 7:19 am
Posts: 30
Location: Martinique
Your sources.list is broken. You need to have lucid-updates for main & restricted also!


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group