debian

How to compile Mono in Debian Wheezy

梦想与她 提交于 2019-12-25 01:41:31
问题 Trying to fix Mono SIGSEGV as described in How to fix SIGSEGV which prevents MVC application running in Mono I tried to compile newer mono from source codes: wget http://download.mono-project.com/sources/mono/mono-5.18.0.225.tar.bz2 cd /usr/local/src tar jxf mono-5.18.0.225.tar.bz2 cd mono-5.18.0.225 ./autogen.sh --prefix=/opt/m518 autogen stops with error that CMake 2.8.10 is required: .... Making install in btls make[2]: Entering directory `/usr/local/src/mono-5.18.0.268/mono/btls' mkdir -p

Limit MongoDB RAM Usage

99封情书 提交于 2019-12-25 00:45:35
问题 How can I limit MongoDB RAM usage? I have a server with 1GB RAM. When I insert 10000 rows 13 times, MongoDB uses almost 95%, and I have to have RAM for other tasks like CRONS. I tried the "Easy Steps ... page" to do this, but it says that need mongod_pid, and I don't know what is that and where is, I only know that I don't use mongod , I've installed mongodb-server. Everything was perfect until I saw that MongoDB uses almost all my RAM. 回答1: It's most likely you have no reason to worry. The

Run through file and parse placeholder variables

我的梦境 提交于 2019-12-24 23:43:00
问题 I have been going over this for a few days and I am completely stuck. I put placeholder variables in my files which are in the following format: *$PLACEHOLDER_VAR* with the original variable being $VAR . Original config.conf TEST="$PLACEHOLDER_USERNAME" TEST2="$PLACEHOLDER_PASSWORD" What I want to do is have a deploy.sh which contains defined variables, and can run a command which will replace any placeholder variables with the defined variables, leaving it like this: New config.conf TEST=

grakn 1.0.0 cannot start queue on debian/wheezy with jdk8

折月煮酒 提交于 2019-12-24 19:47:01
问题 I installed grakn 1.0.0 on debian/wheezy with jdk8 while starting grakn server it says STORAGE .... STARTED QUEUE ..... FAILED I found nothing useful in the log directory. any clues where I could look or where I could ask will be appreciated thanks, Gerald 回答1: I had the same problem. After failing to start, it created a file (like hs_err_pid20005.log) that said: # There is insufficient memory for the Java Runtime Environment to continue. # Native memory allocation (mmap) failed to map

Can't connect to IBM DB2 (SQL30081N)

怎甘沉沦 提交于 2019-12-24 19:09:48
问题 I want to use ibm_db_django to connect to a DB2-database. The database runs on a Windows 7 x64 system. I also installed ibm_db and ibm_db_django on the same system. I developed my app on this computer and everything works fine. Now I wanted to deploy the django-project to a debian 6 x64 system. After some trial I installed the IBM Data Server Client (version 9.5, Fix Pack 10) and added the ODBC-driver for 32-bit. After this I was able to install ibm_db and ibm_db_django . Now I am able to

Upgrade Python 3.2 to Python 3.4 on linux

狂风中的少年 提交于 2019-12-24 13:12:09
问题 I have Python 3.2 installed by default on my Raspbian Linux, but I want Python 3.4 ( time.perf_counter , yield from , etc.). Installing Python 3.4 via apt-get is no problem, but when i type python3 in my shell I still get Python 3.2 (since /usr/bin/python3 still links to it). Should I change the Symlink, or is there a better was to do this? 回答1: You must not change the symlink as there might be Debian utility scripts that depend on the python3 being Python 3.2 or having a particular library

Apt-get can't install anything due to broken dependencies

岁酱吖の 提交于 2019-12-24 12:09:59
问题 Whenever I run apt-get install for any package I get this error ➜ ~ sudo apt-get install clang-5.0 Reading package lists... Done Building dependency tree Reading state information... Done You might want to run 'apt --fix-broken install' to correct these. The following packages have unmet dependencies: gcc-7-multilib : Depends: libc6-dev-i386 (>= 2.11) but it is not going to be installed libc6-dev-x32 : Depends: libc6-dev-i386 (= 2.25-2) but it is not going to be installed E: Unmet

Scripts installed by the deb package have wrong prefix

匆匆过客 提交于 2019-12-24 10:48:30
问题 Building our own deb packages we've run into the issue of having to patch manually some scripts so they get the proper prefix. In particular, We're building mono We're using official tarballs. The scripts that end up with wrong prefix are: mcs, xbuild, nunit-console4, etc An example of a wrong script: #!/bin/sh exec /root/7digital-mono/mono/bin/mono \ --debug $MONO_OPTIONS \ /root/7digital-mono/mono/lib/mono/2.0/nunit-console.exe "$@" What should be the correct end result: #!/bin/sh exec /usr

db_input in postinst doesn't work

家住魔仙堡 提交于 2019-12-24 10:45:21
问题 I have a problem with postinst script, I have to ask root password for MySQL to create some user for my application. I know, it's bad practice to use db_input in postinst however I really need it. Why this postinst doesn't work when I install my app form repository but works properly when I install it as .deb package? postinst: #!/bin/bash -e . /usr/share/debconf/confmodule db_input high my_app/mysql_root_password || true db_go error: dpkg: error processing my-app (--configure): subprocess

Installing OpenCV in Tinker Board

佐手、 提交于 2019-12-24 10:13:34
问题 I have downloaded 20170817-tinker-board-linaro-stretch-alip-v2.0.1.img for Tinker Board. I am trying to install OpenCV 3.0.0. I have followed the instructions given here : http://www.pyimagesearch.com/2015/06/22/install-opencv-3-0-and-python-2-7-on-ubuntu/. I was not able to install libjasper-dev. Hence, instead of libpng12-dev, I have installed libpng. I am trying to compile OpenCV on Tinker Board since yesterday morning. But have been getting following errors during building process: /usr