I'm trying to recompile VIM with clipboard support and I'm attempting to follow this guide.
The trouble is that when I do:
sudo apt-get source vim
I get E: Unable to find a source package for vim, although the package name was auto-completed and exists if you type sudo apt-get source <tab><tab>
By the way, before I started, I did sudo apt-get remove vim.
Any ideas how to proceed?
I'm using Ubuntu 12.04 LTS.
Just do
$ sudo apt-get install vim-gnome
It will install both gvim and vim with clipboard support.
Related
Recently I reinstall ubuntu. When I install vim in new ubuntu 16.04 OS syntax highlighting of PHP, JS has gone.
I install vim by using this command
sudo apt-get install vim
When syntax highlighting hasn't work, I reinstall vim by using this command.
sudo apt-get purge vim; sudo apt-get install vim
But still didn't work. Screenshot of PHP file which is opened by vim is given below.
I installed the open sourced version of Swift from swift.org for Ubuntu 15.10, but I am running Ubuntu 15.04 in my machine. Now when I executed the swift command in the terminal it raising the following error.
swift/usr/bin/repl_swift:error while loading shared libraries:
libicuuc.so.55: cannot open shared object file: No such file or
directory
error: failed to stop process at REPL breakpoint
I ran the following command to ensure libicu52 is installed.
sudo apt-get install libicu52
Please help me to sort out this problem.
Thanks in advance.
Try this one
wget http://security.ubuntu.com/ubuntu/pool/main/i/icu/libicu55_55.1-7_amd64.deb
sudo dpkg -i libicu55_55.1-7_amd64.deb
It worked for me
For newer versions where it complains about libicuuc.so.57: cannot open shared object file (version 57), use the following:
sudo wget http://security.ubuntu.com/ubuntu/pool/main/i/icu/libicu57_57.1-6ubuntu0.3_amd64.deb
sudo dpkg -i libicu57_57.1-6ubuntu0.3_amd64.deb
In general, you can search here for the version you need.
I tried this as well
apt-get install libicu-dev
It worked for me
You don't need libicu-dev unless you are building Swift from source. The problem is that, as pointed out by gengisdave, libicu52 is installed on the machine, but libicu55 is required. A few things you might try:
See if apt-get install libicu55 is going to install the needed version.
Install the binary distribution intended for Ubuntu 14.04. That one requires libicu52, which you do have on the system. This may or may not work, and if it does at first, it may break unexpectedly later depending on what you are doing.
This is even worse, but you might try it if you are just experimenting. Use dpkg -L libicu52 to find out where libicuuc.so.52 is located and create a symlink to it, named libicuuc.so.55, in the same directory.
Before the 8th of December this used to work
echo "deb http://security.ubuntu.com/ubuntu xenial-security main" | sudo tee --
append /etc/apt/sources.list
sudo apt-get update
sudo apt-get install libicu55
I want vim-gtk to use vim 7.4 which I installed from source, but gvim is opening with 7.3 itself.
On A fresh linuxmint, after updating system, I removed already existing vim, than installed vim 7.4 from source and it is perfect installation, everything went fine, and than installed ,
sudo apt-get install vim-gtk
than when I enter gvim, gvim is 7.3 not already existing 7.4!!! and if I enter vim from terminal than its vim-7.4.
I will be thankful if anyone helped me to run gvim on vim 7.4
Two thingsā¦
First, $ sudo apt-get install vim-gtk only uses your repositories (which are certainly frozen at 7.3.something), it doesn't care at all about what you installed manually.
Second, GVim is not a separate frontend that you add to an existing Vim: it is Vim, built with GUI support and either launched as gvim or as vim -g.
You could:
uninstall vim-gtk and re-compile Vim manually following these instructions (note the --enable-gui=gtk2)
or find an up-to-date ppa on LaunchPad.net, add it to your software sources and redo $ sudo apt-get install vim-gtk.
just install vim-gnome and vim-gui and reboot.It worked for me.
Maybe this post will help you install gvim 7.4. There are few steps:
Install the needed dependencies:
$ sudo apt-get install ncurses-dev build-essential mercurial
Clone the sources of Vim 7.4:
$ hg clone https://vim.googlecode.com/hg/ vim
Build Vim from sources:
$ cd vim/src
$ make distclean
$ ./configure --with-features=huge --enable-pythoninterp --enable-rubyinterp
$ make
$ sudo make install
Adjust the PATH:
$ export PATH=/usr/local/bin:$PATH
I used this guide and get gvim 7.4.54.
I'm trying to install UltiSnips in different way but the same message appears each time when I launch vim.
Python 2.7 is installed but it seems that vim has been installed before the 2.7 version.
I tryed to reinstall vim using this link:
$ sudo apt-get install mercurial libssl-dev
$ sudo apt-get build-dep vim
$ hg clone http://hg.debian.org/hg/pkg-vim/vim
$ cd vim
$ hg checkout unstable
$ debian/rules update-orig
$ dpkg-buildpackage -i -I
$ cd ..
But the same problem remains.
Thanks
You don't provide much information to help. You can check whether your Vim has Python via :py print "yes". For the Python version, check the :version output. It will contain something like -lpython2.7.
When you compile Vim yourself, you need to enable the Python integration by passing ./configure --enable-pythoninterp.
I had the same problem with NeoVim on Ubuntu. Running :CheckHealth pointed me into the right direction. Creating the following softlink solved the problem for me:
sudo ln -s /usr/bin/python /usr/local/bin/python
Maybe obvious to most, but not to me was the fact that the neovim module had to be installed. On ubuntu, installing it using pip did the trick for me:
sudo pip3 install neovim
To install the module for python 3, I suppose pip3 has to exchanged for pip for python 2.
Download the source code from http://www.vim.org/.
Then
cd vim
make clean
./configure --prefix=/opt/local --with-features=huge --enable-pythoninterp=yes --enable-multibyte --with-vim-name=vim --with-python-config-dir=/usr/lib/python2.7/config-x86_64-linux-gnu
make
sudo make install
I had the same problem after installing UltiSnips, my simple solution was to type inside vim :version where python3 wasn't install. I solve this installing vim-gtk3, try sudo apt install vim-gtk3 after installing gtk3 the message disapper and my vim launches normally ;)
I want to install Go. I prepared system for support language. But sadly, I can't find Bison and libc6-dev following this command.
sudo apt-get install bison ed gawk gcc libc6-dev make
Then I still can't find the suitable Mercurial for Ubuntu 8.10, which is followed this command.
apt-get install python-setuptools python-dev build-essential
Therefore everyone please guide what I should do in order to install Go completely. My OS is Ubuntu version 8.10. Notice you can post the direct link for me to get packets/files.
Mercurial can typically be installed with
sudo apt-get install mercurial
The package is in universe, which you may not have enabled. The full guide, if you need it, is available here:
https://help.ubuntu.com/community/Mercurial
After installing setuptools et al., the go installation instructions say that you should install mercurial with easy-install, i.e. sudo easy_install mercurial. Are you having trouble with easy_install?
In order to install go with Homebrew run the following command on the terminal:
$ brew install golang
To check the version of go run the following command:
$ go version
To see the location run:
$ which go
To uninstall go :
$ sudo apt-get remove golang-go