debian

Upgrade php 5.5.* to php 5.6.* using apt-get

旧时模样 提交于 2019-12-19 10:52:33
问题 I installed a new local server, when I installed php5 package with apt-get install php5 it got the version 5.6. My production server is still with php 5.5 and I would like to upgrade it to php 5.6 like in my dev environment. Can I do it easily using apt-get ? tell to apt-get to switch to the branch 5.6 ? Thx 回答1: Enter the following commands in the order shown: apt-get -y update add-apt-repository ppa:ondrej/php apt-get -y update apt-get -y install php5.6 php5.6-mcrypt php5.6-mbstring php5.6

service mongod start on debian doesnt work

南楼画角 提交于 2019-12-19 08:59:37
问题 I created a instance of linux debian on Google Compute Engine. I Install git, node.js, python and some other things without problems But when I install mongodb, when finish the installation and the installation try to run mongod, said: [FAIL] Starting database: mongod failed! I try with: sudo service mongod start and was the same. I try many thing like: rm mongodb.lock Change path of data to / data / db Change permisions to mongodb.log But nothing work. When I run /etc/init.d/mongod start The

The program 'rails' is currently not installed?

荒凉一梦 提交于 2019-12-19 04:25:16
问题 I've installed Ruby (1.8.7 via apt-get) and I installed Rails (2.3.2 via rubygems) but when I type 'rails newapp', I get this error: The program 'rails' is currently not installed. You can install it by typing: sudo apt-get install rails rails: command not found When I run 'gem list' it shows rails and all of it's dependencies. Any idea what might have gone wrong? 回答1: How did you install rubygems? I've found problems when using it through the ubuntu repositories in the past. Usually I remove

Debian 9 美化界面

天大地大妈咪最大 提交于 2019-12-18 20:51:43
Debian 桌面美化 安装 gnome-tweak-tool aptitude install gnome-tweak-tool 登陆 gnome-look 下载主题包 gnome-look上有很多主题包,这里主要讲解以下几种主题的安装配置方法 GTK3 Themes Icon Themes Gnome Shell Themes Mouse Cursors GTK3 Themes 安装 将下载下来的主题包解压,然后复制到/usr/share/themes目录 cp -R DarkRed1 /usr/share/themes/ 打开tweak-tool设置 这里以我下载的DarkRed1为例 Gnome Shell Themes 安装 这个主题包一般会包含在/usr/share/themes的主题包中,所以将下载下来的包解压到/usr/share/themes 打开tweak-tool设置 这里的Shell theme主题默认没有开启,需要先开启Extension选项中的User theses,然后再选择相关的Gnome Shell Themes Icon Themes 安装 将下载下来的主题包解压,然后复制到/usr/share/icons目录 打开tweak-tool设置,即可看到文件夹图标的改变 这里以windows 10 icons为例 Mouse Cursors 安装

PYTHONPATH ignored

 ̄綄美尐妖づ 提交于 2019-12-18 20:15:51
问题 Environment: debian 4.0 Python 2.4 My 'project' is installed in: /usr/lib/python2.4/site-packages/project. But I want to use my working copy instead of the installed one which is located in: /home/me/dev/project/src So what I do is: export PYTHONPATH=/home/me/dev/project/src ipython import foo # which is in src foo.__file__ */usr/lib/python2.4/site-packages/project/foo.py* instead of : /home/me/dev/project/src/project/foo.py How come? I try to check the pathes (having done the export above)

Transport Endpoint Not Connected - Mesos Slave / Master

匆匆过客 提交于 2019-12-18 18:47:31
问题 I'm trying to connect a Mesos slave to its master. Whenver the slave tries to connect to the master, I get the following message: I0806 16:39:59.090845 935 hierarchical.hpp:528] Added slave 20150806-163941-1027506442-5050-921-S3 (debian) with cpus(*):1; mem(*):1938; disk(*):3777; ports(*):[31000-32000] (allocated: ) E0806 16:39:59.091384 940 socket.hpp:107] Shutdown failed on fd=25: Transport endpoint is not connected [107] I0806 16:39:59.091508 940 master.cpp:3395] Registered slave 20150806

mono debug information with exceptions on debian?

*爱你&永不变心* 提交于 2019-12-18 14:51:53
问题 I thought apt-get install mono-dbg would solve it but i was wrong. How do i get debug information with mono? i am using debian squeeze but couldnt figure it out on debian lenny or etch. I wrote a dummy program below and i was hoping for a line number but i got this instead. This is a copy/paste from the console/terminal. Unhandled Exception: System.Exception: nooo blah at ExceptionTest.Program.func (Int32 a) [0x00000] in <filename unknown>:0 at ExceptionTest.Program.func (Int32 a) [0x00000]

mono debug information with exceptions on debian?

允我心安 提交于 2019-12-18 14:50:08
问题 I thought apt-get install mono-dbg would solve it but i was wrong. How do i get debug information with mono? i am using debian squeeze but couldnt figure it out on debian lenny or etch. I wrote a dummy program below and i was hoping for a line number but i got this instead. This is a copy/paste from the console/terminal. Unhandled Exception: System.Exception: nooo blah at ExceptionTest.Program.func (Int32 a) [0x00000] in <filename unknown>:0 at ExceptionTest.Program.func (Int32 a) [0x00000]

Apache doesn't serve files in “javascript” directory. Why?

a 夏天 提交于 2019-12-18 14:45:27
问题 All of the sudden I started getting 404s for files like http://example.localhost/javascript/jquery.min.js Earlier everything was working just fine. I didn't change any configs, at least not manually. But now if I'd try to access the /javascript directory itself I would get "Cannot serve directory /usr/share/javascript/: No matching DirectoryIndex (index.html,index.cgi,index.pl,index.php,index.xhtml,index.htm) found, and server-generated directory index forbidden by Options directive in the

Error running make: missing separator (did you mean TAB instead of 8 spaces?)

纵然是瞬间 提交于 2019-12-18 13:38:40
问题 I'm trying to get PHP phar command line tool installed on my Debian VM, how here described: (1) download the php-src, I assume it's in /tmp/php/src (2) make the dir /tmp/phar (3) Save this as /tmp/php-src/ext/phar/Makefile. (4) cd /tmp/php-src/ext/phar (5) run sudo make Now after step 5 I get an error: :/tmp/php-src/ext/phar# make Makefile:11: *** missing separator (did you mean TAB instead of 8 spaces?). Stop. As I know, there can be two possible causes for this error message: Tabs in the