ubuntu-14.04

CakePhp does not work in Ubuntu 14.04

风流意气都作罢 提交于 2019-12-25 02:29:01
问题 I have installed cakephp v2.4.6 in Ubuntu 14.04 (64 bit) and database is PostgreSQL. The same system works fine in Windows environment but after I transfer it into Ubuntu, it shows some issues. The CSS does not work. No color and the login screen alignment change. After login, an error says "the requested url was not found in the server" came. Some forum ask us to change the config file in /etc/apache2/sites-available/default.conf . But I could not find any default.conf file. Please guide.

Porting from pcl-1.5 to pcl-1.7

馋奶兔 提交于 2019-12-24 22:17:02
问题 I am using ubuntu14.04 . I have a code which is written in pcl-1.5 . I now want to run it in pcl-1.7 . It's giving a lot of compilation errors. Is there a way to port my classes and functions from pcl-1.5 to pcl-1.7 ? 回答1: I understand that you want to build your project on PCL 1.5 while PCL 1.7 is installed. This is possible. I assume you install PCL 1.5 from source and then build it so that it ends up with a build directory. These instructions are vague because it has been a while since I

pyinstaller: _libcouchbase module not found after building the executable

夙愿已清 提交于 2019-12-24 18:30:24
问题 I have a simple python script that imports couchbase module on Ubuntu 14.04: $ cat test.py from couchbase import Couchbase print 'module _libcouchbase found' Running from interpreter works fine: $ python test.py module _libcouchbase found Created an executable: $ pyinstaller test.py Running the executable throws an error of unable to import _libcouchbase module: $ ./dist/test/test Traceback (most recent call last): File "<string>", line 1, in <module> File "/usr/local/lib/python2.7/dist

How to save a SSL certificate and create a virtual host in NGINX using a Rails App?

给你一囗甜甜゛ 提交于 2019-12-24 17:50:27
问题 I have a Rails app, which uses the gem Rails Let's Encrypt to generate SSL certificates for custom domains. The gem is really simple to use. After the installation/configuration, I can generate a certificate and the data will be stored in the database. I want to save the certificate CRT and the certificate KEY in the respective NGINX folder: /etc/nginx/ssl/ After that, I want to : Copy the file /etc/nginx/sites-available/default and save with name /etc/nginx/sites-available/customdomain.com

Linux error when installing Keras

不羁岁月 提交于 2019-12-24 17:09:45
问题 I am getting this strange to me error when installing Keras on an Ubuntu server: Cythonizing /tmp/easy_install-qQggXs/h5py-2.5.0/h5py/utils.pyx In file included from /usr/local/lib/python2.7/dist-packages/numpy/core/include/numpy/ndarraytypes.h:1804:0, from /usr/local/lib/python2.7/dist-packages/numpy/core/include/numpy/ndarrayobject.h:17, from /usr/local/lib/python2.7/dist-packages/numpy/core/include/numpy/arrayobject.h:4, from /tmp/easy_install-qQggXs/h5py-2.5.0/h5py/api_compat.h:26, from

Trouble trying to access KVM code in ubuntu 14.04

北战南征 提交于 2019-12-24 15:12:07
问题 My virtualization project requires me to make changes in the vmx.c file of KVM.I have installed KVM in my Ubuntu 14.04 OS and am done launching an instance too.Yet,when I look up for vmx.c in the system,I do not find it.I though find a vmx.h file in the following directory /usr/src/linux-headers-3.19.0-30/arch/x86/include/asm.It would be really helpful if someone could guide me as to how do I go about it.Thank you in advance! 回答1: To be able to modify KVM without recompiling all the kernel,

SSL handshake is not working when compiled in Ubuntu 14

≯℡__Kan透↙ 提交于 2019-12-24 12:39:03
问题 This is the flow I use to setup my HTTPS server with SSL. It works perfectly on Windows, OS X and Ubuntu 13 . But it's failing to work on Ubuntu 14 only and I don't know why. It's not the full code once it's very big, but I can complete with more details if necessary. SSL_library_init(); m_sslContext = SSL_CTX_new( SSLv23_server_method() ); SSL_CTX_use_certificate_chain_file( m_sslContext, "path/to/certificate.crt" ); SSL_CTX_use_PrivateKey_file( m_sslContext, "path/to/privatekey.pem", SSL

R leaflet package produces blank (grey) map [Ubuntu 14.04]

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-24 12:31:15
问题 I tried out the examplecode from the leaflet package doc: devtools::install_github("rstudio/leaflet");library(leaflet) m <- leaflet() %>% addTiles() %>% # Add default OpenStreetMap map tiles addMarkers(lng=174.768, lat=-36.852, popup="The birthplace of R") m # Print the map but it only produced a grey, blank map in the RStudio Viewer, as well as in my Firefox 38.0. Maybe this has something to do with Ubuntu? Here my sessionInfo: > sessionInfo() R version 3.2.1 (2015-06-18) Platform: x86_64-pc

Startup program and libocci.so.11.1: cannot open shared object file: No such file or directory

孤街醉人 提交于 2019-12-24 09:52:48
问题 please any one save my time .my application is written in c++ I was try to startup on boot in ubuntu linux,but when the program try to start it log error like:- error while loading shared libraries: libocci.so.11.1: cannot open shared object file: No such file or directory my program use oracle api:- my start service script which is written in /etc/init.d/sistartup:- #!/bin/sh # chkconfig: 345 99 10 OWNER=aki case "$1" in 'start') su $OWNER -c "/home/aki/sis_script/startsis.sh >> /home/aki

How can I make my shell script executable

僤鯓⒐⒋嵵緔 提交于 2019-12-24 08:23:39
问题 I wrote a shell script wich opens some directories and run some script , I run this bash file by terminal (bash filename.sh), how can I make it clickable ? 回答1: You first need to start your script with '#!/bin/bash ' and save it as < filename >.sh Also make sure that you keep the permissions as a+x i.e all users can execute the script. 回答2: You need to add the following shebang line to the top of your code. #!/bin/bash You also need to ensure that the script has executable permissions by