我正在使用Ubuntu 13.10 x64,我正在开发一个开发人员正在使用Windows的项目,我最近将git配置更改core.eol为"lf"和core.autocrlf"input"以及core.safecrlf"true".从那时起,当我尝试将文件提交到我的本地存储库时,我得到了这个错误:
fatal: CRLF would be replaced by LF in ......
根据我的理解,如果我设置core.eol为"lf"和core.autocrlf"输入",git会自动将CRLF转换为LF,但为什么会出现此错误出来吗?我该如何解决这个问题?
谢谢.
我正在使用ubuntu 13.10 x64,我正在尝试构建php 5.3.8,我下载了源代码并运行configure:
./configure --enable-fpm --with-fpm-user=www-data --with-fpm-group=www-data
--with-tidy --with-config-file-path=/usr/local/php/conf
--with-config-file-scan-dir=/usr/local/php/conf.d --enable-debug --with-openssl
--with-kerberos --with-zlib --enable-calendar --with-curl --with-curlwrappers
--with-enchant --enable-exif --enable-ftp --with-gd --with-jpeg-dir=/usr
--with-png-dir=/usr --with-vpx-dir=/usr --with-freetype-dir=/usr --with-t1lib
--enable-exif --enable-gd-native-ttf --enable-gd-jis-conv --with-gettext
--with-gmp --with-mhash --enable-intl --enable-mbstring --with-mcrypt --with-mysql
--with-mysqli --enable-pcntl --with-pdo-mysql --with-pdo-pgsql
--with-pgsql --with-pspell --with-libedit --with-readline --enable-shmop
--with-snmp --enable-soap --enable-sockets --enable-sysvmsg --enable-sysvshm
--with-xsl --enable-zip --with-pear --enable-zend-signals --enable-maintainer-zts
Run Code Online (Sandbox Code Playgroud)
我收到了这个错误: configure: error: Unable to locate gmp.h
我已安装libgmp-dev并libgmp3-dev使用sudo apt-get install libgmp-dev libgmp3-dev但仍无法成功运行配置,如何解决此问题?
如果我跑,locate gmp.h我可以在这里看到它:
/usr/include/linux/igmp.h
/usr/include/netinet/igmp.h …Run Code Online (Sandbox Code Playgroud) 我想将产品简短描述添加到产品列表模板页面,我发现这篇文章:http: //www.magentocommerce.com/knowledge-base/entry/magento-for-dev-part-3-magento-controller-dispatch
它说:Blocks refer directly back to the models for their data. In other words, the Action Controller does not pass them a data structure.
那么,是否应该将简短描述的代码添加到Block类中?但Block类是Magento Core类:
Mage_Catalog_Block_Product_List
我不应该编辑这个类,对吧?所以我该怎么做?创建我自己的Block类扩展Mage_Catalog_Block_Product_List并向其添加showProductShortDescription方法?如果是,我应该创建自己的模块吗?
谢谢!