I am on Ubuntu 14.04.2 LTS.
I want to run LightTable (downloaded from the official GitHub website). When I run the script, it says that I need leiningen.
I installed leiningen using apt-get install leiningen. It worked fine.
Now it says that I need a more recent version: "Do a lein upgrade first".
How do I upgrade lein?
Here are steps to upgrade leiningen-1.x to 2.x.
Find where lein is installed and rename it as something else.
$ lein -v
Leiningen 1.7.1 on Java 1.8.0_77 Java HotSpot(TM) 64-Bit Server VM
$ whereis lein
lein: /usr/bin/lein
$ sudo mv /usr/bin/lein /usr/bin/lein1
Download lein 2.x and put it in your system path.
$ wget https://raw.github.com/technomancy/leiningen/stable/bin/lein
$ chmod +x lein
$ sudo mv lein /usr/bin
You can also move it any directory which is in system path.
Now check your version
$ lein -v
Leiningen 2.6.1 on Java 1.8.0_77 Java HotSpot(TM) 64-Bit Server VM
You can find these instructions on wiki page of leiningen.
Run lein upgrade in a terminal.
nodebot#nodebox:~$ lein upgrade
The script at /home/nodebot/bin/lein will be upgraded to the latest stable version.
Do you want to continue [Y/n]?
Upgrading...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 137 0 137 0 0 242 0 --:--:-- --:--:-- --:--:-- 242
100 12015 100 12015 0 0 11841 0 0:00:01 0:00:01 --:--:-- 11841
Leiningen is already up-to-date.
Leiningen 2.5.1 on Java 1.8.0_45 Java HotSpot(TM) 64-Bit Server VM
nodebot#nodebox:~$
Related
I try to setup nativescript-vue on linux by following steps on nativescript website. when I use this command
sudo update-alternatives --config java
but have an error
update-alternatives: error: no alternatives for java
Please tell me how to fix this problem......
Try
sudo update-alternatives --install /usr/bin/java java path_to_java 1
In my case the path was /usr/lib/jvm/java-8-openjdk-amd64
Do you have java installed?
Check if you do by running java -version in the command line/terminal
I am trying to install the cassandra cpp driver dev 2.9.0-1 on Debian Stretch.
But it depends on libssl.so.1.0.0 & libcrypto.so.1.0.0.
Debian Stretch however only comes with libssl.so.1.0.2?
It appears Apache Cassandra PHP Driver/Exetension requires OpenSSL v1.0.0 due to the DataStax C/C++ driver dependency for Cassandra
This is for php 7.0 or 7.1 on Debian 9 stretch
the error message you will most likely get is libssl.so.1.0.0 => not found libcrypto.so.1.0.0 => not found
This workaround works but I do not know if it impacts other dependencies.
mkdir temp
cd temp
wget http://security.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.0.0_1.0.1-4ubuntu5.39_amd64.deb &
ar x libssl1.0.0_1.0.1-4ubuntu5.39_amd64.deb
cp ./lib/x86_64-linux-gnu/libssl.so.1.0.0 /usr/lib/x86_64-linux-gnu/
cp ./lib/x86_64-linux-gnu/libcrypto.so.1.0.0 /usr/lib/x86_64-linux-gnu/
cp -r ./usr/lib/x86_64-linux-gnu/openssl-1.0.0/ /usr/lib/x86_64-linux-gnu/
service nginx restart
service apache2 restart
To verify the extension is being loaded the following command can be executed:
php -i | grep -A 10 "^cassandra$"
I am trying to download/install/run clojure/lein and facing some initial problems. I am using cygwin on windows-7.
After downloading the latest clojure (1.8.0), the following step works fine:
java -cp clojure-1.8.0.jar clojure.main
Now I installed lein using the following steps (thanks to stackoverflow/18711805 for help):
download lein script into ~/bin , set filetype=unix
install wget and deps (see stackoverflow/18711805)
setenv HTTP_CLIENT "wget --no-check-certificate -O"
lein self-install
Now when I run "lein repl", I find that lein has downloaded another clojure version (1.7.0) and using that.
So, how can I ask lein to use my version of clojure (ie 1.8.0) and not the 1.7.0 ? Are there any extra environment variables to be set before the lein run?
Also, where does lein install its extra downloads, and how do I clean up that area?
"lein upgrade" did the trick, I got the hint from stackoverflow/24094597. Now when I run lein again I can see 1.8.0 (not my own install, but lein has installed this new version). But since I installed lein just a few minutes ago from scratch anyway, I am not sure why it did not install the latest version in the first place.
I have Installed OpenJdk on my redhat instance recently. Now am in need to go for Java Jdk. I saw some sites for replacement but none working for me. Thanks in advance..
Install the JDK , then written to the terminal.
alternatives --config java
Enter the number
I work in fedora , try it in Red Hat.
Spring boot application is failed to start on AWS EC2 instance because of JDK old version is running on EC2 Instance. I have run following command to set updated version 1.8 from 1.7.
Follow command:
sudo yum install java-1.8.0
sudo /usr/sbin/alternatives --config java
I am looking into deploying a Django project on a shared server running Apache. This is my first time doing this. I have a shared folder on the server for my work and I have been added to the sudo group so I can install new software.
How do I check via Terminal command line if mod_wsgi is already installed? and preferably what version it is?
I can ssh onto the server, the version of Apache is
$ apache2 -v
Server version: Apache/2.2.22 (Ubuntu)
Server built: Jul 12 2013 13:37:10
$
Any help is much appreciated.
EDIT:
Just for future reference, after I ran the command $ dpkg -s libapache2-mod-wsgi provided by Dirk Eschler it showed me that it was not installed. It returned
Package `libapache2-mod-wsgi' is not installed and no info is available.
Use dpkg --info (= dpkg-deb --info) to examine archive files,
and dpkg --contents (= dpkg-deb --contents) to list their contents.
Hope this helps someone else.
To check if it is installed:
$ dpkg -s libapache2-mod-wsgi
In case it is installed, you might check if it's loaded by Apache:
$ apache2ctl -t -D DUMP_MODULES
Though you are on Ubuntu.
This might help someone else on CentOS, Fedora or Red Hat
rpm -q mod_wsgi
Since you're on Ubuntu, which is Debian-based, you can look in /etc/apache2/mods-enabled.
if you working with python in Red Hat
search this for mod_wsgi installed or not yum search python3-mod_wsgi
or search this for module is loaded or not rpm -q python3-mod_wsgi