ubuntu-14.04

How to install/enable intl and xsl extensions after installing PHP 7

人走茶凉 提交于 2019-11-29 11:03:54
问题 I installed php7/apache2.4/mysql5.6 via this script, but it turns out that the extensions xsl and intl are missing (need them to run Magento2). I'm using Ubuntu 14.04. 回答1: If it is for dev purposes only, the easiest way would be use a PPA like ppa:ondrej/php-7.0 and then apt-get install php7.0-intl and apt-get install php7.0-xsl . PPAs should NEVER be used in production. 回答2: You can run sudo apt-get install php7.0-intl to get it installed. You dont need PPA adding on 16.10 . 回答3: 1st you

Installing tkinter on ubuntu 14.04

一笑奈何 提交于 2019-11-29 10:37:43
问题 I want to run python code on Ubuntu 14.04, but when I execute it, it gives me the following error message Traceback (most recent call last): File "main.py", line 2, in <module> from tkinter import * ImportError: No module named tkinter 回答1: Try writing the following in the terminal: sudo apt-get install python-tk Don't forget to actually import Tkinter module at the beginning of your program: import Tkinter 回答2: If you're using Python 3 then you must install as follows: sudo apt-get update

Can't run pip: UnicodeDecodeError

一曲冷凌霜 提交于 2019-11-29 09:34:00
I have trouble using pip. For example: pip install numpy --upgrade Gives me the following error: Collecting numpy Using cached numpy-1.10.2.tar.gz Exception: Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/pip/basecommand.py", line 211, in main status = self.run(options, args) File "/usr/local/lib/python2.7/dist-packages/pip/commands/install.py", line 305, in run wb.build(autobuilding=True) File "/usr/local/lib/python2.7/dist-packages/pip/wheel.py", line 705, in build self.requirement_set.prepare_files(self.finder) File "/usr/local/lib/python2.7/dist-packages

Can't authenticate on mongodb with PHP

泪湿孤枕 提交于 2019-11-29 04:12:03
What i've done: Enabled authentication in /etc/mongod.conf : auth = true Created the first user from the shell as stated in the doc : db.createUser( { user: "admin", pwd: "admin", roles: [ { role: "userAdminAnyDatabase", db: "admin" } ] }) Using the admin user, i've created a root user to access mongodb: db.createUser( { user: "root", pwd: "root", roles: [ "root" ] }) Until this point all works fine, as i can authenticate from the mongo shell with: mongo --port 27017 -u root -p root admin and it works perfectly, as i can make all operations in the db. The problem : when i try to authenticate

How to resolve the error “[ErrorException] file_get_contents(/var/www/laravel/.env): failed to open stream: No such file or directory”?

荒凉一梦 提交于 2019-11-29 03:14:37
I'm using Ubuntu 14.04 on my machine. I installed composer and then laravel in the document root i.e. /var/www I also gave -R 777 persmission to folder laravel present in directory /var/www Then I go to directory laravel using cd /var/www/laravel and run the following command php artisan and I got to see all the available commands there. Then I typed in php artisan key:generate and got the error [ErrorException] file_get_contents(/var/www/laravel/.env): failed to open stream: No such file or directory Here I got stuck actually, can someone please help me in this regard? Thanks. Rename .env

How to mount HDFS on Ubuntu 14.04

断了今生、忘了曾经 提交于 2019-11-29 03:03:26
问题 So,I can't mount HDFS on Ubuntu 14.04. Mucommander not working, fuse not working, can somebody explain me with images or make me some tutorial. Thanks, best regards. 回答1: I successfuly did it today using instructions on Cloudera site wget http://archive.cloudera.com/cdh5/one-click-install/trusty/amd64/cdh5-repository_1.0_all.deb sudo dpkg -i cdh5-repository_1.0_all.deb sudo apt-get update sudo apt-get install hadoop-hdfs-fuse sudo mkdir -p <mount_point> hadoop-fuse-dfs dfs://<name_node

OpenCV: libdc1394 error: Failed to initialize libdc1394

余生长醉 提交于 2019-11-29 01:17:06
问题 I installed OpenCV correctly on Ubuntu 14.04. However, when I run: import cv2 I get this error message: >>> import cv2 libdc1394 error: Failed to initialize libdc1394 I read the answers to this question (and the different links posted there such as this interesting but finally useless one for my case) but no solution worked for me. I have no such file /dev/raw1394 . So I installed the library: sudo apt-get install libdc1394-22-dev libdc1394-22 libdc1394-utils But still get the same error.

Gradle does not recognize the JAVA_HOME I have set

淺唱寂寞╮ 提交于 2019-11-28 21:39:06
I have set my JAVA_HOME to /usr/lib/jvm/java-7-oracle , which contains a valid JVM, but gradle insists on using /usr/lib/jvm/default-java and complains about JAVA_HOME : $ echo $JAVA_HOME /usr/lib/jvm/java-7-oracle $ ls $JAVA_HOME bin COPYRIGHT db include jre lib LICENSE man README.html release src.zip THIRDPARTYLICENSEREADME-JAVAFX.txt THIRDPARTYLICENSEREADME.txt $ gradle assemble ERROR: JAVA_HOME is set to an invalid directory: /usr/lib/jvm/default-java Please set the JAVA_HOME variable in your environment to match the location of your Java installation. How can I fix this and have gradle

Permission denied for Git Clone when I do npm install

我与影子孤独终老i 提交于 2019-11-28 21:39:05
I have git dependencies in my package.json file. When I do sudo npm install in my react app folder, I get this error npm ERR! code 1 npm ERR! Command failed: /usr/bin/git clone --depth=1 -q -b master https://github.com/lrojas94/react-file-base64.git /home/admin1/.npm/_cacache/tmp/git-clone-462782fb npm ERR! /home/admin1/.npm/_cacache/tmp/git-clone-462782fb/.git: Permission denied npm ERR! npm ERR! A complete log of this run can be found in: npm ERR! /home/admin1/.npm/_logs/2017-07-18T08_58_10_906Z-debug.log admin1@ubuntu:~/hys_pms/ui$ nohup: appending output to ‘nohup.out’ This is my package

prior storage driver “aufs” failed: driver not supported Error starting daemon: error initializing graphdriver: driver not supported

耗尽温柔 提交于 2019-11-28 21:26:54
When a try to run docker locally in ubuntu 14.04 when i run this line in the console: sudo docker -d The console show me this error: Warning: '-d' is deprecated, it will be removed soon. See usage. WARN[0000] please use 'docker daemon' instead. ERRO[0000] [graphdriver] prior storage driver "aufs" failed: driver not supported FATA[0000] Error starting daemon: error initializing graphdriver: driver not supported Try removing all downloaded images: sudo rm /var/lib/docker/aufs -rf That helped me to recover docker after a kernel update. Related issues on the github: https://github.com/docker