使用bundle可以先在一台环境中通过网络安装好所有gems,然后运行: bundle package 会将所有所需要的gem文件打包到./vendor/cache目录下,然后复制这些文件到目标机器上,运行 bundle install –local 最好目标机器和原机有相同的环境。当然系统必须要相同。Linux/windows/osx
Category: 编程工具(Utilities)
OSX 安装oracle instantclient系列包
从oracle下载的几个包解压即可使用,但是这几个包如果不想安装在系统默认的/usr/bin和/usr/lib目录的话,就会有shared library找不到的问题了。参考了这篇文章修复此问题。 其中文中提到的script我运行后是有问题的,原因是因为install_name_tool的版本不对,换成xcode中的command line tool里面的版本就好了。所以更新script如下: [code] #!/bin/sh # script to change the dynamic lib paths and ids for oracle instant client # exes and libs # proces all the executable files in this directory find . -maxdepth 1 -type f \( -perm -1 -o \( -perm -10 -o -perm -100 \) \) -print | while… Continue reading OSX 安装oracle instantclient系列包
GIT与Subversion的简单比较
最近买了本《version control with git》的动物书。给自己下了规定,一定要每天看一点。免得像之前的书一样,买了不怎么看,只是偶尔翻翻,有点浪费。目前看到DIFF这章。本章的结尾是比较了git 和 subversion的diff机制。于是想上网查一下具体git和subversion还有些什么比较大的区别。在GIT官方的WIKI上看到一下总结,简单翻译一下: Git is much faster than Subversion GIT比 SVN快 Subversion allows you to check out just a subtree of a repository; Git requires you to clone the entire repository (including history) and create a working copy that mirrors at least a subset of the items under version control. SVN允许从服务器拿库中的某个子目录;GIT要求你clone整个库。… Continue reading GIT与Subversion的简单比较
vs2010中臃肿的ipch和sdf文件
使用VS2010建立C++解决方案时,会生成SolutionName.sdf和一个叫做ipch的文件夹,这两个文件再加上*.pch等文件使得工程变得非常的庞大,一个简单的程序都会占用几十M的硬盘容量,交换项目文件时很不方便。 那么,该怎么解决呢?其实可以关闭它。方法: Tools->Options->Text Editor->C/C++->Advanced->Disable Database,设置为True 但是这样的办法会产生另外的一些问题,可能会导致其他的一些功能不能使用。例外一种解决方法是: Tools->Options->Text Editor->C/C++->Advanced,在 Fallback Location 的属性组中,将”Always Use Fallback Location”设置为 true,将”Do Not Warn If Fallback Location Used” 设置为 true ,然后删除解决方案目录下的 sdf 文件和 ipch 目录,再次打开解决方案,发现这些烦人的东西已经不见了。 Indicates that browsing databases and IntelliSense files should always be stored in your “Fallback Location”, not next to the .sln file. 可以在 “Fallback Location” 属性中,设置一个固定的路径来存储这些文件,比如E:\temp\vsdatabase,这样也比较好管理这些庞大的臃肿的文件,可以定期清理掉它们,释放出硬盘空间!
VC6.0 + SP6 + sdk feb 2003 + msdn 2001
根据微软网站的介绍,目前已经不支持VC6.0了,最后一个支持vc6.0的windows sdk是2003年2月版的。最后一个支持vc6.0的MSDN是2001年10月版的。最新的VC6的SP补丁是Sp6。所以如果现在还有遗留项目需要用到vc6来开发的话,最好的开发环境就是VC6.0+sp6补丁+feb 2003的SDK + oct 2001 msdn。 msdn在某BT网站下载 vc6.0随便一搜索就能下载到,推荐英文企业版。 feb2003 sdk在微软官方下载。地址比较隐蔽,这里放出,有效期未知,目前有效。 http://download.microsoft.com/download/platformsdk/sdk/update/win98mexp/en-us/3790.0/FULL/PSDK-FULL.1.cab http://download.microsoft.com/download/platformsdk/sdk/update/win98mexp/en-us/3790.0/FULL/PSDK-FULL.2.cab http://download.microsoft.com/download/platformsdk/sdk/update/win98mexp/en-us/3790.0/FULL/PSDK-FULL.3.cab http://download.microsoft.com/download/platformsdk/sdk/update/win98mexp/en-us/3790.0/FULL/PSDK-FULL.4.cab http://download.microsoft.com/download/platformsdk/sdk/update/win98mexp/en-us/3790.0/FULL/PSDK-FULL.5.cab http://download.microsoft.com/download/platformsdk/sdk/update/win98mexp/en-us/3790.0/FULL/PSDK-FULL.6.cab http://download.microsoft.com/download/platformsdk/sdk/update/win98mexp/en-us/3790.0/FULL/PSDK-FULL.7.cab http://download.microsoft.com/download/platformsdk/sdk/update/win98mexp/en-us/3790.0/FULL/PSDK-FULL.8.cab http://download.microsoft.com/download/platformsdk/sdk/update/win98mexp/en-us/3790.0/FULL/PSDK-FULL.9.cab http://download.microsoft.com/download/platformsdk/sdk/update/win98mexp/en-us/3790.0/FULL/PSDK-FULL.10.cab http://download.microsoft.com/download/platformsdk/sdk/update/win98mexp/en-us/3790.0/FULL/PSDK-FULL.11.cab http://download.microsoft.com/download/platformsdk/sdk/update/win98mexp/en-us/3790.0/FULL/PSDK-FULL.12.cab http://download.microsoft.com/download/platformsdk/sdk/update/win98mexp/en-us/3790.0/FULL/PSDK-FULL.13.cab http://download.microsoft.com/download/platformsdk/sdk/update/win98mexp/en-us/3790.0/FULL/PSDK-FULL.bat http://download.microsoft.com/download/platformsdk/sdk/update/win98mexp/en-us/3790.0/FULL/Extract.exe http://download.microsoft.com/download/platformsdk/sdk/update/win98mexp/en-us/3790.0/FULL/PSDK-FULL.1.cabhttp://download.microsoft.com/download/platformsdk/sdk/update/win98mexp/en-us/3790.0/FULL/PSDK-FULL.2.cabhttp://download.microsoft.com/download/platformsdk/sdk/update/win98mexp/en-us/3790.0/FULL/PSDK-FULL.3.cabhttp://download.microsoft.com/download/platformsdk/sdk/update/win98mexp/en-us/3790.0/FULL/PSDK-FULL.4.cabhttp://download.microsoft.com/download/platformsdk/sdk/update/win98mexp/en-us/3790.0/FULL/PSDK-FULL.5.cabhttp://download.microsoft.com/download/platformsdk/sdk/update/win98mexp/en-us/3790.0/FULL/PSDK-FULL.6.cabhttp://download.microsoft.com/download/platformsdk/sdk/update/win98mexp/en-us/3790.0/FULL/PSDK-FULL.7.cabhttp://download.microsoft.com/download/platformsdk/sdk/update/win98mexp/en-us/3790.0/FULL/PSDK-FULL.8.cabhttp://download.microsoft.com/download/platformsdk/sdk/update/win98mexp/en-us/3790.0/FULL/PSDK-FULL.9.cabhttp://download.microsoft.com/download/platformsdk/sdk/update/win98mexp/en-us/3790.0/FULL/PSDK-FULL.10.cabhttp://download.microsoft.com/download/platformsdk/sdk/update/win98mexp/en-us/3790.0/FULL/PSDK-FULL.11.cabhttp://download.microsoft.com/download/platformsdk/sdk/update/win98mexp/en-us/3790.0/FULL/PSDK-FULL.12.cabhttp://download.microsoft.com/download/platformsdk/sdk/update/win98mexp/en-us/3790.0/FULL/PSDK-FULL.13.cabhttp://download.microsoft.com/download/platformsdk/sdk/update/win98mexp/en-us/3790.0/FULL/PSDK-FULL.bathttp://download.microsoft.com/download/platformsdk/sdk/update/win98mexp/en-us/3790.0/FULL/Extract.exe 输入PSDK-FULL E:\2003.2.SDK ,注意后面要给出解压到的文件夹,如 E:\2003.2.SDK 然后用窗口方式进入E:\2003.2.SDK找到Setup就可以安装了 sp6补丁在微软官方还有。容易找到。 不过VC6真的是在IDE中功能太弱了。用了后来的版本的VS后,觉得用回VC6很不顺手。还是建议能在有条件的情况下能够将项目升级到新版本的VS下。VS2008之后还是很不错的。