搭建环境及其遇到的问题

[size=x-large]搭建环境:[/size]

Installation on Ubuntu 10.04 :

Installation Steps:

1.Setting up the Rails development environment
Ruby, rubygems, rails and other required packages can be installed by :
"sudo apt-get install rails"

2.Setting up MySQL server
Fedena uses mysql, so run,
"sudo apt-get install mysql-server mysql-client libmysql-ruby"
Do remember the mysql password you set during this step, it is required in step five.

3.Download the latest Fedena source code from github
Download Fedena source code from GitHub. Extract the downloaded .tar archive to a convenient location where you would be running fedena . Let us say we extracted it to a directory named fedena in my home(~) directory.

4.Install Rails version 2.3.5
Fedena runs on version 2.3.5 of rails, so open a terminal and run,
"sudo gem install rails -v=2.3.5"

5.Setup your database details in the database.yml
Open the file database.yml in the config folder of the fedena soucre. Change the following details:
database: fedena - The name of the database you want to use for fedena
username: root - Mysql username for fedena
password: mypass - The password for the above mysql user

6.Install the prawn gem
Run "sudo gem install prawn -v=0.6.3"

7.Install the rest of the gems
Open a terminal and navigate to the fedena source directory, install the rest of the gems by running
"sudo rake gems:install"

8.Set up Fedena databases
From the Fedena source directory in terminal run, "rake db:create" followed by, "rake db:migrate"

9.Change permissions for scripts
From the same directory grant executable permissions for the files in script directory by,
"chmod +x script/*"

10.Run the inbuilt server
If everything went fine till now, you are ready to run fedena server by running the following from fedena source folder,
"script/server"
Fedena Configurations :

1. To enable SMS Module
i) Add a new row with config_key = "AvailableModules" and config_value = "SMS" (without quotes,case-sensitive) to `configurations` Table
ii) Update the SMS API settings in lib/sms_manager.rb to use the SMS Module.

2. To disable HR module, delete the row with config_key = "AvailableModules" and config_value = "HR"

3. To disable Finance module, delete the row with config_key = "AvailableModules" and config_value = "Finance"



[size=x-large]设置git:[/size]

http://help.github.com/linux-set-up-git/

当下载github上的资源时,报错:
Agent admitted failure to sign using the key.
Permission denied (publickey).


那么执行,[color=red]ssh-add ~/.ssh/id_rsa[/color]
再ssh git@github.com提示连接成功就可以 clone了

vim安装 有问题,如何删除?
sudo apt-get remove vim

vim设置
1、使用cd / 转到文件系统中;


2、cd/etc/vim 切换到vim目录内;


3、修改文件权限 : sudo chmod 777 vimrc ,会提示你输入密码,输入密码即可;


4、vim vimrc 打开vim文件,添加以下内容:

""""""""""""""""""""""""""""""""""""""
" 文件设置
""""""""""""""""""""""""""""""""""""""

set encoding=utf-8
set fileencoding=chinese
set fileencodings=ucs-bom,utf-8,chinese
set ambiwidth=double


sudo gem install rubygems-update-1.4.1.gem
rm -r .vim/plugin/ScreenShot.vim
vim .vim
gedit.vimrc
make CFLAGS="-O2 -D_FORTIFY_SOURCE=1"
./configure --enable-multibyte --enable-rubyinterp
sudo make CFLAGS="-O2 -D_FORTIFY_SOURCE=1"
sudo apt-get install vim-nox

sudo apt-get install mercurial
hg clone https://vim.googlecode.com/hg/ vim
./configure --enable-rubyinterp

sudo apt-get remover mysql-server mysql-client libmysqlclient15-de
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值