拡張FORMなどアドオンの作者のホームページ > その他 > RaspberryPiの実験と話題 > RaspberryPiにconcrete"5.7"をインストールしてみた(ベータ版)
RaspberryPiにconcrete"5.7"をインストールしてみた(ベータ版)
Created on 2014/7/5 by tomoac
本日(2014/7/5)時点では、githubからインストールします。
以下に詳しく書かれています。
http://concrete5-japan.org/community/forums/translate/post-7484/
上記ページを見ながら、RaspberryPiにインストールしてみました。
まず、
以下のコマンドでconcrete5-5.7.0 リポジトリからクローンします。
gitはデフォルトでインストールされていました。
$ sudo git clone https://github.com/concrete5/concrete5-5.7.0.git
カレントディレクトリを、concrete ディレクトリに移動し、アクセス権を確認設定します。
$ cd concrete5-5.7.0/web/concrete/
$ sudo chmod 757 ../concrete
次に、以下のコマンドでComposerをインストールします。
$ sudo curl -sS https://getcomposer.org/installer | php
(注)RaspberryPiに接続したキーボードでは、"|"の文字が入力できません。(入力する設定方法がわからない)
そんな場合は、別のPCからリモートログインして続けましょう。
以下は、実際の実行時の記録です。
$ sudo curl -sS https://getcomposer.org/installer | php
#!/usr/bin/env php
All settings correct for using Composer
Downloading...
Composer successfully installed to: /var/www/concrete5-5.7.0/web/concrete/composer.phar
Use it: php composer.phar
$
次に、composer install コマンドで依存パッケージをダウンロードするのですが、以下のようなエラーが出ます。
$ sudo php composer.phar install
Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Installation request for facebook/php-sdk dev-master -> satisfiable by facebook/php-sdk[dev-master].
- facebook/php-sdk dev-master requires ext-curl * -> the requested PHP extension curl is missing from your system.
Problem 2
- Installation request for guzzle/guzzle v3.9.1 -> satisfiable by guzzle/guzzle[v3.9.1].
- guzzle/guzzle v3.9.1 requires ext-curl * -> the requested PHP extension curl is missing from your system.
Problem 3
- Installation request for kertz/twitteroauth dev-master -> satisfiable by kertz/twitteroauth[dev-master].
- kertz/twitteroauth dev-master requires ext-curl * -> the requested PHP extension curl is missing from your system.
Problem 4
- guzzle/guzzle v3.9.1 requires ext-curl * -> the requested PHP extension curl is missing from your system.
- aws/aws-sdk-php 2.6.6 requires guzzle/guzzle >=3.7.0,<=3.9.9 -> satisfiable by guzzle/guzzle[v3.9.1].
- Installation request for aws/aws-sdk-php 2.6.6 -> satisfiable by aws/aws-sdk-php[2.6.6].
$
RaspberryPiでは、"php-curl" がデフォルトでインストールされてないので、以下のコマンドでインストールします。
$ sudo apt-get install php5-curl
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
php5-curl
0 upgraded, 1 newly installed, 0 to remove and 124 not upgraded.
Need to get 27.2 kB of archives.
After this operation, 102 kB of additional disk space will be used.
Get:1 http://mirrordirector.raspbian.org/raspbian/ wheezy/main php5-curl armhf 5.4.4-14+deb7u11 [27.2 kB]
Fetched 27.2 kB in 1s (24.9 kB/s)
Selecting previously unselected package php5-curl.
(Reading database ... 67051 files and directories currently installed.)
Unpacking php5-curl (from .../php5-curl_5.4.4-14+deb7u11_armhf.deb) ...
Processing triggers for libapache2-mod-php5 ...
Reloading web server config: apache2 not running.
Processing triggers for php5-fpm ...
Restarting PHP5 FastCGI Process Manager: php5-fpm.
Setting up php5-curl (5.4.4-14+deb7u11) ...
Creating config file /etc/php5/mods-available/curl.ini with new version
Processing triggers for libapache2-mod-php5 ...
Reloading web server config: apache2 not running.
Processing triggers for php5-fpm ...
Restarting PHP5 FastCGI Process Manager: php5-fpm.
$
改めてインストールします。少し時間がかかります。
$ sudo php composer.phar install
Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
- Installing symfony/event-dispatcher (v2.1.13)
Downloading: 100%
- Installing guzzle/guzzle (v3.9.1)
Downloading: 100%
- Installing aws/aws-sdk-php (2.6.6)
Downloading: 100%
- Installing dapphp/securimage (dev-master 9289657)
Cloning 9289657235a3525408c79005848eef6578106ce6
- Installing doctrine/lexer (v1.0)
Downloading: 100%
- Installing doctrine/inflector (v1.0)
Downloading: 100%
- Installing doctrine/collections (v1.2)
Downloading: 100%
- Installing doctrine/cache (v1.3.0)
Downloading: 100%
- Installing doctrine/annotations (v1.1.2)
Downloading: 100%
- Installing doctrine/common (v2.4.2)
Downloading: 100%
- Installing symfony/console (v2.5.0)
Downloading: 100%
- Installing doctrine/dbal (v2.4.2)
Downloading: 100%
- Installing doctrine/orm (v2.4.0)
Downloading: 100%
- Installing facebook/php-sdk (dev-master b31c5a7)
Cloning b31c5a7911773a0684e89c7d1d84b0ca575e6cc8
- Installing filp/whoops (1.1.1)
Downloading: 100%
- Installing hautelook/phpass (dev-master 94845c6)
Cloning 94845c6e7eecdc025e8b33dd272d03db06c87f2a
- Installing htmlawed/htmlawed (dev-master 9d292af)
Cloning 9d292af5f4c288aa68f38b87f5d88c8214f5f233
- Installing illuminate/container (v4.1.30)
Downloading: 100%
- Installing imagine/imagine (dev-develop 35a0e9d)
Cloning 35a0e9dc50e9f30a949248d674c2a684c6c10529
- Installing innogames/cssmin (dev-master 6d3aa76)
Cloning 6d3aa76c53c47ddbaf02d5bd2e0d1d5ecd0ade7a
- Installing kertz/twitteroauth (dev-master 97b677c)
Cloning 97b677ca030e7de7dcade797aabb4af8a3aa463f
- Installing league/flysystem (0.4.5)
Downloading: 100%
- Installing michelf/php-markdown (dev-lib 123c43a)
Cloning 123c43a65c783e7535384cfbec640d9702204c22
- Installing mobiledetect/mobiledetectlib (dev-master 3e61d64)
Cloning 3e61d64863885bd172b0f4ad74f73db57a4bef4c
- Installing psr/log (1.0.0)
Downloading: 100%
- Installing monolog/monolog (1.10.0)
Downloading: 100%
- Installing nesbot/carbon (dev-master b94de71)
Cloning b94de7192b01d0e80794eae984dcc773220ab0dc
- Installing oyejorge/less.php (v1.7.0.1)
Downloading: 100%
- Installing pagerfanta/pagerfanta (v1.0.2)
Downloading: 100%
- Installing patchwork/utf8 (v1.1.24)
Downloading: 100%
- Installing primal/color (dev-master 2adf015)
Cloning 2adf015e5b6d70e7e629e2a53f335f0e372040b9
- Installing simplepie/simplepie (dev-master 9a9faaa)
Cloning 9a9faaa0d563426cf6d897c169373c5b62f1b252
- Installing symfony/class-loader (2.5.x-dev 09e38e4)
Cloning 09e38e4d228c1f7f997f3dc7068d9d2fba9a10b0
- Installing symfony/http-foundation (v2.1.13)
Downloading: 100%
- Installing symfony/http-kernel (v2.1.13)
Downloading: 100%
- Installing symfony/routing (v2.1.13)
Downloading: 100%
- Installing symfony/serializer (v2.1.13)
Downloading: 100%
- Installing tedivm/jshrink (v0.5.2)
Downloading: connection...Failed to download tedivm/jshrink from dist: The "https://api.github.com/repos/tedivm/JShrink/zipball/4b48e3d051cf0ab145db9df20d3292d91485bb60" file could not be downloaded (HTTP/1.1 404 Not Found)
Now trying to download from source
- Installing tedivm/jshrink (v0.5.2)
Cloning 4b48e3d051cf0ab145db9df20d3292d91485bb60
- Installing voku/urlify (dev-master 94410f1)
Cloning 94410f1e46a511a6602d3394e5f11fd010b1ffce
- Installing zf1/zend-exception (dev-master ee61f13)
Cloning ee61f139d1ad7070c1ff4d0f4bd7ccd441172f11
- Installing zf1/zend-cache (dev-master 466c3e4)
Cloning 466c3e48b559f3b3c6475170e84ad93bb79dad74
- Installing zf1/zend-xml (dev-master f24c8b2)
Cloning f24c8b2e53c9bd67177d77c3e976f01fe806a079
- Installing zf1/zend-locale (dev-master e09d676)
Cloning e09d6768b56136bb724b130274bcd5fd8a902176
- Installing zf1/zend-currency (dev-master c54edac)
Cloning c54edaca863d1d9296e111632d4e051ea0c0db39
- Installing zf1/zend-date (dev-master 5fb1769)
Cloning 5fb1769de16f224b36a3405a66c9eb9de5fe5925
- Installing zf1/zend-loader (dev-master 433adcc)
Cloning 433adcc69b7c6517495d137f7733983bb2399301
- Installing zf1/zend-db (dev-master 93e45ef)
Cloning 93e45ef0ef6c3f7b9d462f665bdb4943f737eaa0
- Installing zf1/zend-validate (dev-master 7ba6a6b)
Cloning 7ba6a6b33d49b75424fa79a73d45d8f12fd3081d
- Installing zf1/zend-mime (dev-master 0a1894e)
Cloning 0a1894ef0d4fedc9d895e6c46ae3713198916b1b
- Installing zf1/zend-mail (dev-master a4782ec)
Cloning a4782ec0185f3998abdada146a8c373e839cb110
- Installing zf1/zend-queue (dev-master f0015ce)
Cloning f0015ce0a0e6c21fc238a679bb3a3c7d72786563
- Installing zf1/zend-translate (dev-master bef6b0d)
Cloning bef6b0dfdafb3401a60f2fa87987024fa70d925c
symfony/event-dispatcher suggests installing symfony/dependency-injection (2.1.*)
aws/aws-sdk-php suggests installing ext-apc (Allows service description opcode caching, request and response caching, and credentials caching)
aws/aws-sdk-php suggests installing symfony/yaml (Eases the ability to write manifests for creating jobs in AWS Import/Export)
doctrine/orm suggests installing symfony/yaml (If you want to use YAML Metadata Mapping Driver)
imagine/imagine suggests installing ext-gmagick (to use the Gmagick implementation)
imagine/imagine suggests installing ext-imagick (to use the Imagick implementation)
league/flysystem suggests installing dropbox/dropbox-sdk (Allows you to use Dropbox storage)
league/flysystem suggests installing phpseclib/phpseclib (Allows SFTP server storage)
league/flysystem suggests installing predis/predis (Allows you to use Predis for caching)
league/flysystem suggests installing rackspace/php-opencloud (Allows you to use Rackspace Cloud Files)
league/flysystem suggests installing sabre/dav (Enables WebDav support)
monolog/monolog suggests installing doctrine/couchdb (Allow sending log messages to a CouchDB server)
monolog/monolog suggests installing ext-amqp (Allow sending log messages to an AMQP server (1.0+ required))
monolog/monolog suggests installing ext-mongo (Allow sending log messages to a MongoDB server)
monolog/monolog suggests installing graylog2/gelf-php (Allow sending log messages to a GrayLog2 server)
monolog/monolog suggests installing raven/raven (Allow sending log messages to a Sentry server)
monolog/monolog suggests installing rollbar/rollbar (Allow sending log messages to Rollbar)
monolog/monolog suggests installing ruflin/elastica (Allow sending log messages to an Elastic Search server)
pagerfanta/pagerfanta suggests installing doctrine/mongodb-odm (To use the DoctrineODMMongoDBAdapter.)
pagerfanta/pagerfanta suggests installing doctrine/phpcr-odm (To use the DoctrineODMPhpcrAdapter. >= 1.1.0)
pagerfanta/pagerfanta suggests installing mandango/mandango (To use the MandangoAdapter.)
pagerfanta/pagerfanta suggests installing propel/propel1 (To use the PropelAdapter)
pagerfanta/pagerfanta suggests installing solarium/solarium (To use the SolariumAdapter.)
patchwork/utf8 suggests installing ext-intl (Use Intl for best performance)
symfony/http-kernel suggests installing symfony/browser-kit (2.1.*)
symfony/http-kernel suggests installing symfony/config (2.1.*)
symfony/http-kernel suggests installing symfony/dependency-injection (2.1.*)
symfony/http-kernel suggests installing symfony/finder (2.1.*)
symfony/routing suggests installing symfony/config (2.1.*)
symfony/routing suggests installing symfony/yaml (2.1.*)
zf1/zend-cache suggests installing zf1/zend-log (Used in special situations or with special adapters)
zf1/zend-locale suggests installing zf1/zend-registry (Used in special situations or with special adapters)
zf1/zend-db suggests installing zf1/zend-registry (Used in special situations or with special adapters)
zf1/zend-db suggests installing zf1/zend-wildfire (Used in special situations or with special adapters)
zf1/zend-validate suggests installing zf1/zend-filter (Used in special situations or with special adapters)
zf1/zend-validate suggests installing zf1/zend-registry (Used in special situations or with special adapters)
zf1/zend-queue suggests installing zf1/zend-config (Used in special situations or with special adapters)
Generating autoload files
$
(注)現時点では、このあとのconcrete5.7のインストールがうまく進みません。まだなにか環境に問題があるようです。
拡張FORMなどアドオンの作者のホームページ > その他 > RaspberryPiの実験と話題 > RaspberryPiにconcrete"5.7"をインストールしてみた(ベータ版)