ln -s /usr/bin/nodejs /usr/bin/node
ubuntu下无法解析或打开软件包列表或状态文件
第一步 sudo rm /var/lib/apt/lists/* -vf
第二步 sudo apt-get update
安装VMware 时出现The Microsoft Runtime DLL installer Failed to complete
虚拟机主机共享文件夹
安装sublime text
sudo add-apt-repository ppa:webupd8team/sublime-text-2
sudo apt-get update
sudo apt-get update
sudo apt-get install sublime-text-2
更换jdk后eclipse -clean报错
n error has occurred. See the log file /home/solohermex/.eclipse/org.eclipse.platform_3.7.0_155965261/configuration/1337069840757.log.
!SESSION 2012-05-15 16:25:54.852 -----------------------------------------------
eclipse.buildId=I20110613-1736
java.version=1.7.0
java.vendor=Oracle Corporation
BootLoader constants: OS=linux,ARCH=x86,WS=gtk,NL=en_US
Command-line arguments: -os linux -ws gtk -arch x86
!ENTRY org.eclipse.osgi 4 0 2012-05-15 16:26:13.648
!MESSAGE Application error
!STACK 1
java.lang.UnsatisfiedLinkError: Could not load SWT library. Reasons:
no swt-gtk-3740 in java.library.path
no swt-gtk in java.library.path
解决办法:在eclipse目录下输入的
32位系统:ln -s /usr/lib/jni/libswt-* ~/.swt/lib/linux/x86/
64位系统:ln -s /usr/lib/jni/libswt-* ~/.swt/lib/linux/x86_64/
Ubuntu安装maven
1. 前往Apache Maven官网下载最新版本:https://maven.apache.org/download.cgi,本文以apache-maven-3.3.9-bin.tar.gz为例。
2.解压安装MVN,sudo tar -zxvf apache-maven-3.3.9-bin.tar.gz #将安装包解压
3.配置全局环境变量 sudo vim .bashrc
#set maven environment
export MAVEN_HOME=/home/hadoop/apache-maven-3.3.9
export MAVEN_OPTS="-Xmx1024m" #避免内存溢出错误(可选)
export PATH=$MAVEN_HOME/bin:$PATH
4.更新 source .bashrc
5.检查 mvn -version
安装thrift问题
wget-nvhttp://archive.apache.org/dist/thrift/0.7.0/thrift-0.7.0.tar.gz
tarxzfthrift-0.7.0.tar.gz
cdthrift-0.7.0
chmod+x./configure
./configure--disable-gen-erl--disable-gen-hs--without-ruby--without-haskell--without-erlang
sudomakeinstall
这时会出现major.minor.version 51错误,把jdk版本改成1.6就可以了
再make install出现fatalerror:Python.h:Nosuchfileordirectory
运行sudo apt-get install python-dev即可