Skip to content

Instantly share code, notes, and snippets.

@ilkka
Created March 4, 2011 09:53
Show Gist options
  • Select an option

  • Save ilkka/854415 to your computer and use it in GitHub Desktop.

Select an option

Save ilkka/854415 to your computer and use it in GitHub Desktop.
ilaukkan@ilaukkan-laptop:~
1 :( $ sudo pear list-all -c indeyets
All packages [Channel indeyets]:
================================
Package Latest Local
indeyets/AppServer 0.4.0 A set of components for building extremely fast universal web-apps
indeyets/AppServer_backport52 0.2.2 A set of components for building extremely fast universal web-apps
indeyets/httpparser 1.0.0 HTTP/1.1 Parser
indeyets/midgardmvc_installer 1.0.4 Midgard MVC Installer
indeyets/pake 1.6.1 PHP automation tool with capabilities similar to make.
ilaukkan@ilaukkan-laptop:~
0 ;) $ sudo pear install indeyets/midgardmvc_installer
Did not download optional dependencies: pecl/svn, pecl/yaml, use --alldeps to download automatically
indeyets/midgardmvc_installer can optionally use PHP extension "midgard2"
indeyets/pake requires package "channel://pear.symfony-project.com/YAML"
indeyets/pake can optionally use package "pecl/svn"
indeyets/pake can optionally use package "pecl/yaml"
indeyets/midgardmvc_installer requires package "indeyets/pake" (version >= 1.5.1)
No valid packages found
install failed
ilaukkan@ilaukkan-laptop:~
1 :( $ sudo pear install --alldeps indeyets/midgardmvc_installer
Unknown remote channel: pear.symfony-project.com
indeyets/midgardmvc_installer can optionally use PHP extension "midgard2"
indeyets/pake requires package "channel://pear.symfony-project.com/YAML"
indeyets/midgardmvc_installer requires package "indeyets/pake" (version >= 1.5.1)
downloading svn-1.0.1.tgz ...
Starting to download svn-1.0.1.tgz (24,716 bytes)
....done: 24,716 bytes
downloading yaml-1.0.1.tgz ...
Starting to download yaml-1.0.1.tgz (33,774 bytes)
...done: 33,774 bytes
4 source files, building
running: phpize
sh: phpize: not found
ERROR: `phpize' failed
10 source files, building
running: phpize
sh: phpize: not found
ERROR: `phpize' failed
ilaukkan@ilaukkan-laptop:~
0 ;) $
(install php5-dev and "pear channel-discover" the missing channel above. Installation still
fails because pear wants to install the svn extension for php and libsvn-dev is not
installed. After installing *that*, "sudo pear install --alldeps indeyets/midgardmvc_installer"
succeeds)
$ midgardmvc install http://bit.ly/hV05pi testsite
# checking, if recent AiP is installed…
# Next command will be run using superuser privileges
>> exec '/usr/bin/sudo' pear channel-update 'pear.indeyets.pp.ru'
# Next command will be run using superuser privileges
>> exec '/usr/bin/sudo' pear install 'pear.indeyets.pp.ru/AppServer'
downloading AppServer-0.4.0.tgz ...
Starting to download AppServer-0.4.0.tgz (33,312 bytes)
....done: 33,312 bytes
install ok: channel://pear.indeyets.pp.ru/AppServer-0.4.0
# checking, if required extensions are installed…
[pakeException]
MVC applications require "midgard2" and "gettext" extensions to be
installed
@ilkka
Copy link
Copy Markdown
Author

ilkka commented Mar 4, 2011

Tried searching for midgard2 ext:

  $ pear search -a midgard2
  Retrieving data...0%
  no packages found that match pattern "midgard2", for channel doc.php.net.
  Retrieving data...0%
  no packages found that match pattern "midgard2", for channel pear.indeyets.pp.ru.
  Retrieving data...0%
  no packages found that match pattern "midgard2", for channel pear.php.net.
  Retrieving data...0%
  no packages found that match pattern "midgard2", for channel pear.symfony-project.com.
  Retrieving data...0%
  no packages found that match pattern "midgard2", for channel pecl.php.net.

@bergie
Copy link
Copy Markdown

bergie commented Mar 4, 2011

Midgard2 is not a PEAR package, but a PHP extension. Grab it from http://download.opensuse.org/repositories/home:/midgardproject:/ratatoskr/xUbuntu_10.04/

@ilkka
Copy link
Copy Markdown
Author

ilkka commented Mar 7, 2011

ahhhh okay, so it's not in the repo for Ubuntu 10.10 for some reason. Well, gonna grab it and see how it goes :) Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment