CentOSにsymfonyをインストール
Sep 12, 2008AD:
確認すべきこと
- symfonyはPHP5の環境でしか動きません
- pearが古いと動きません Version1.40以降
Pearのインストール
pearが入っているのかを確認する
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
yum list | grep pear php-pear.noarch 1:1.4.9-4.el5.1 installed php-pear-Auth-SASL.noarch 1.0.2-4.el5.centos extras php-pear-DB.noarch 1.7.13-1.el5.centos extras php-pear-Date.noarch 1.4.7-2.el5.centos extras php-pear-File.noarch 1.2.2-1.el5.centos extras php-pear-HTTP-Request.noarch 1.4.2-1.el5.centos extras php-pear-Log.noarch 1.9.13-1.el5.centos extras php-pear-MDB2.noarch 2.4.1-2.el5.centos extras php-pear-MDB2-Driver-mysql.noarch 1.4.1-3.el5.centos extras php-pear-Mail.noarch 1.1.14-1.el5.centos extras php-pear-Mail-Mime.noarch 1.4.0-1.el5.centos extras php-pear-Net-SMTP.noarch 1.2.10-1.el5.centos extras php-pear-Net-Sieve.noarch 1.1.5-2.el5.centos extras php-pear-Net-Socket.noarch 1.0.8-1.el5.centos extras php-pear-Net-URL.noarch 1.0.15-1.el5.centos extras |
上記のようにpearの一覧がでればインストールはされています。
入っていない場合は、インストールが必要です。
1 |
yum install pear |
1.40以降でないと動かないので、pearのアップグレード
1 |
pear upgrade PEAR |
symfonyのインストール
symfonyにチャンネルを追加
1 |
pear channel-discover pear.symfony-project.com |
いよいよsymfonyをインストール
1 2 |
pear install symfony/symfony<br> symfony/symfony requires PHP extension "dom" |
とエラーがでる、、、調べると「php-xml」が必要らしい
1 |
yum install php-xml |
symfonyのインストールを再挑戦
1 2 3 4 5 |
pear install symfony/symfony downloading symfony-1.1.1.tgz ... Starting to download symfony-1.1.1.tgz (2,131,490 bytes) ..................................................done: 2,131,490 bytes install ok: channel://pear.symfony-project.com/symfony-1.1.1 |
インストールの確認
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 |
symfony -v<br> Available tasks: :help Displays help for a task (h) :list Lists tasks cache :clear Clears the cache (cc, clear-cache) configure :author Configure project author :database Configure database DSN generate :app Generates a new application (init-app) :module Generates a new module (init-module) :project Generates a new project (init-project) :task Creates a skeleton class for a new task i18n :extract Extracts i18n strings from php files :find Finds non "i18n ready" strings in an application log :clear Clears log files (log-purge) :rotate Rotates an application log files (log-rotate) plugin :add-channel Add a new PEAR channel :install Installs a plugin (plugin-install) :list Lists installed plugins (plugin-list) :uninstall Uninstalls a plugin (plugin-uninstall) :upgrade Upgrades a plugin (plugin-upgrade) project :clear-controllers Clears all non production environment controllers (clear-controllers) :deploy Deploys a project to another server (sync) :disable Disables an application in a given environment (disable) :enable Enables an application in a given environment (enable) :freeze Freezes symfony libraries (freeze) :permissions Fixes symfony directory permissions (permissions, fix-perms) :unfreeze Unfreezes symfony libraries (unfreeze) :upgrade1.1 Upgrade a symfony project to the 1.1 symfony release propel :build-all Generates Propel model, SQL and initializes the database (propel-build-all) :build-all-load Generates Propel model, SQL, initializes database, and load data (propel-build-all-load) :build-db Creates database for current model (propel-build-db) :build-forms Creates form classes for the current model :build-model Creates classes for the current model (propel-build-model) :build-schema Creates a schema.xml from an existing database (propel-build-schema) :build-sql Creates SQL for the current model (propel-build-sql) :data-dump Dumps data to the fixtures directory (propel-dump-data) :data-load Loads data from fixtures directory (propel-load-data) :generate-crud Generates a Propel CRUD module (propel-generate-crud) :init-admin Initializes a Propel admin module (propel-init-admin) :insert-sql Inserts SQL for current model (propel-insert-sql) :schema-to-xml Creates schema.xml from schema.yml (propel-convert-yml-schema) :schema-to-yml Creates schema.yml from schema.xml (propel-convert-xml-schema) test :all Launches all tests (test-all) :functional Launches functional tests (test-functional) :unit Launches unit tests (test-unit) |
とりあえず、完了!!
AD:
One Comment, Comment or Ping
Reply to “CentOSにsymfonyをインストール”
Warning: Undefined variable $user_ID in /home/sazaeau/mizoshiri.com/public_html/blog.mizoshiri.com/wp-content/themes/grid_focus_public_mizo/comments.php on line 66
You must be logged in to post a comment.