Can't run a code that includes "./" in google colab - google-colaboratory

I'm new to colab, and I can't seem to find how to run this code in colab, the original code is:
cd megatools-1.10.3/ ./configure make sudo make install
and all I have so far is:
%cd megatools-1.10.3/ ./configure make sudo make install
Can you please help me? Thanks.

You may need to put them on multiple lines, like this.
%cd megatools-1.10.3/
! ./configure
! make
! make install

I found it. It's:
%cd megatools-1.10.3
!./configure make sudo make install

Related

How to Install Tensorflow on Google Coral Dev Board?

How to install Tensorflow on Coral Dev?
Getting errors following this on Coral Dev board (one of them):
    Error Message: compile.sh not found.
Please, give me some additional instruction, thanks.
It is really not going to be possible to help if you don't give details on what you've done or what errors you ran into while trying to install it.
However, since the objective is to install tensorflow on the board, you can just do this using this pre-built package:
$ wget https://github.com/lhelontra/tensorflow-on-arm/releases/download/v2.0.0/tensorflow-2.0.0-cp37-none-linux_aarch64.whl
$ sudo apt-get install -y python3-dev libhdf5-dev python3-h5py
$ sudo pip3 install tensorflow-2.0.0-cp37-none-linux_aarch64.whl
Also, please note that using the full tensorflow on the board isn't going to gain any performance from the TPU.
[Edit] Apologies, forgot to credit lhelontra/tensorflow-on-arm repo for the prebuilt package!

Can you use rmagic (rpy2) in google colaboratory?

I know google colaboratory doesn't yet support an R kernel. What about rmagic? Can I use rpy2?
I tried :
!pip install rpy2==2.8.6
And got :
Collecting rpy2==2.8.6
Using cached https://files.pythonhosted.org/packages/32/54/d102eec14f9cabd0df60682a38bd45c36169a1ec8fb8a690bf436cb6d758/rpy2-2.8.6.tar.gz
Complete output from command python setup.py egg_info:
Error: Tried to guess R's HOME but no command 'R' in the PATH.
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-install-3bSiiD/rpy2/
I'm guessing that it isn't working because R isn't installed on whatever cloud machine this notebook is running on, and that it probably isn't possible to install it. But I'm hoping I'm wrong and someone may know of a work around.
OK, I answered my own question. I thought for sure this would fail, but tried anyway:
!apt-get update
!apt-get install r-base
!pip install rpy2==2.8.6
And it worked!

Installing/Running CGAL on Ubuntu

I can't seem to install CGAL properly on my computer. I'm using Ubuntu, and I ran these commands, like it says to do in the directions.
sudo apt-get install libcgal-dev
sudo apt-get install libcgal-demo
They install fine, no errors. But then the directions say to cd into CGAL-4.7, but couldn't find it. I found a CGAL under /usr/include, and it seems to include all the algorithm files. But there are no MakeFile/CMakeLists to cmake.
I'm not sure what to do?
Never mind, once I found it, I tried this below and it worked
cd /path/to/program
cgal_create_CMakeLists -s executable
cmake -DCGAL_DIR=$HOME/CGAL-4.7 .
make

SSH Install Mysqlnd - Package Not Found

I am trying to install Mysqlnd using ssh and the yum command but I keep getting the error that no such package exists. Can someone help me out? I have also tried yum search php-mysqlnd and there is no such package on the system.
Sounds like you'll have to pull it from another repo, I suggest Atomic's repo.
They have a simple one liner auto installer, give it a shot.
wget -q -O - http://www.atomicorp.com/installers/atomic | sh
Then of course yum update and then fire off yum install php-mysqlnd
Edit: Sounds like you've got some yum excludes active.
vi /etc/yum.conf and you'll likely see something to the effect of exclude=mysql* php*. You can comment out this line or just remove them altogether.
Another options is to use the command line option...
yum --disableexcludes=all which will kill all excludes currently active.
yum --disableexcludes=main which will kill all excludes in your main yum.conf.

Having trouble installing mod_WSGI - can't find input file

I'm trying to set up mod_wsgi for use with Django. I have apache2, apache2-dev, python2.6, python2.6-dev all installed, but I'm getting this error when running configure:
checking for apxs2... /usr/bin/apxs2
checking Apache version... 2.2.14
checking for python... /usr/bin/python
configure: creating ./config.status
config.status: error: cannot find input file: Makefile.in
Thanks for the help!
I had the exact same problem. Installing the apache2-dev package solved it.
sudo apt-get install apache2-dev
I don't think the asker needs this answer anymore, so I answered for future readers with similar problems
Install apache2-threaded-dev:
$ sudo apt-get install apache2-threaded-dev
I started writing that you may need to ensure that you have axps installed (you can do this by installing the apache2-dev package). but I notice that configure already found axps. I had a similar problem but configure was bailing on not finding this dependency. Maybe some similar dependency or write permissions.
You are running the mod_WSGI 'configure' script in the mod_WSGI source code directory aren't you? Ie., in the same directory as the Makefile.in file that comes with the source tar ball.
mod_wsgi's configure script uses apxs to find the path to httpd:
apxs -q SBINDIR
apxs -q TARGET
Combine those with a "/" and add "-v", e.g.,
/blah/bin/httpd -v
That should run without an error. If it does not then mod_wsgi's configure script can't figure out the httpd version and you will get a broken symbolic link for Makefile.in.
For me, libpcre.so.0 wasn't in the LD_LIBRARY_PATH. Doing this:
export LD_LIBRARY_PATH=/usr/local/lib
then reconfiguring mod_wsgi and building fixed the problem.