LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   no vim on slackware (https://www.linuxquestions.org/questions/slackware-14/no-vim-on-slackware-4175573584/)

sigint-ninja 02-29-2016 03:03 PM

no vim on slackware
 
tried running
vim --version

got:
vim: error while loading shared libraries: libperl.so: cannot open shared object file: No such file or directory

vim
vim: error while loading shared libraries: libperl.so: cannot open shared object file: No such file or directory

vi works though....was at slackbuilds but cant find a plain vim
there is pyvim and other vims with letters before them that i am not familiar with

how can i install vim on slackware? also...what is the current version supported on slackware 14.1 is it 7.4?

BW-userx 02-29-2016 03:12 PM

Quote:

Originally Posted by sigint-ninja (Post 5508124)
tried running
vim --version

got:
vim: error while loading shared libraries: libperl.so: cannot open shared object file: No such file or directory

vim
vim: error while loading shared libraries: libperl.so: cannot open shared object file: No such file or directory

vi works though....was at slackbuilds but cant find a plain vim
there is pyvim and other vims with letters before them that i am not familiar with

how can i install vim on slackware? also...what is the current version supported on slackware 14.1 is it 7.4?

Their ya go VIM for Slackware 14.1
better look before installing you 64 or 32 bit?
or is Slack all 64bit now I forget.
(I know Slack64 can be configured to compile and run 32bit after install )

sigint-ninja 02-29-2016 03:17 PM

thanks!!!

i went to slackbuilds searched for vim...but it didnt look like plain vim

how come i couldnt find it? where does this url come from?

https://slackbuilds.org/mirror/slack...source/ap/vim/

i really have to learn to find things more handy

thanks again

astrogeek 02-29-2016 03:27 PM

Vim is already included in Slackware, no need to add it.

Did you not do a complete install?

And from the looks of the error message, vim is installed but you have some perl dependencies that are not installed.

BW-userx 02-29-2016 03:36 PM

Quote:

Originally Posted by sigint-ninja (Post 5508132)
thanks!!!

i went to slackbuilds searched for vim...but it didnt look like plain vim

Quote:


how come i couldnt find it? where does this url come from?
fat fingers?

aahh the interNet?


https://slackbuilds.org/mirror/slack...source/ap/vim/

Quote:

i really have to learn to find things more handy

thanks again
key words I used where,
'slackbuilds 14.1 vim'


you need to bookmark this one

SlackBuilds

but like @astrogeek said, check your dependencies for vim, insure they are installed.

sigint-ninja 02-29-2016 03:37 PM

yes astrogeek i know vim comes with pretty much every distro.

yes i did a full install...and had this problem

i have downloaded and compiled from source and everything is working again

what could i possibly be doing to cause dependency problems?

all i have really done is removed a few unwanted programs using pkgtool

thanks..

astrogeek 02-29-2016 03:41 PM

Quote:

Originally Posted by sigint-ninja (Post 5508144)
what could i possibly be doing to cause dependency problems?

all i have really done is removed a few unwanted programs using pkgtool

Without a list of what those unwanted programs were, it is not possible to say.

But it is obvious that something that you removed broke vim... ;)

As always, it is best to install the full base Slackware - and leave it installed. Everything is there for a reason!

dugan 02-29-2016 03:45 PM

Quote:

Originally Posted by sigint-ninja (Post 5508144)
yes i did a full install...

what could i possibly be doing to cause dependency problems?

all i have really done is removed a few unwanted programs using pkgtool

Doing a full install and then removing "unwanted programs" with pkgtool, obviously, causes you to no longer have a full install. It's also what caused your dependency problem.

If removing part of your distro caused vim to break, then rebuilding vim (as you did) is a perfectly valid way of dealing with the problem.

Next time, though, there might be an easier way of dealing with it. The error message showed that a file called "libperl.so" was missing. If you look on the Slackware mirrors and on the CDs, there's a file called MANIFEST. That shows which package contains each file in the distribution. You can check that to find out which package contains libperl.so and needs to be reinstalled.

astrogeek 02-29-2016 03:50 PM

If this was Slackware 14.1, you apparently removed the perl-5.18.1-i486-1 package.

sigint-ninja 02-29-2016 03:57 PM

so removing programs using pkgtool removes dependencies too?

astrogeek 02-29-2016 04:01 PM

Quote:

Originally Posted by sigint-ninja (Post 5508154)
so removing programs using pkgtool removes dependencies too?

No, but if you remove something that is itself a dependency of something else, then "something else" will break.

In this case, perl-5 is a dependency of the Slackware distribution vim package. When you rebuilt it, it rebuilt without perl, so it worked.

Can you post a list of those unwanted programs that you removed? That might help explain things a little better.

MarcT 02-29-2016 07:13 PM

The "ldd" command is useful for determining the shared library dependencies of an executable.

For example on Slackware 14.1 64-bit:

Code:

marc@anvil:~$ which vim
/usr/bin/vim

^ Shows us there is a "vim" installed in /usr/bin.

Code:

marc@anvil:~$ ldd /usr/bin/vim
        linux-vdso.so.1 (0x00007fff751ff000)
        libm.so.6 => /lib64/libm.so.6 (0x00007f78972c1000)
        libncurses.so.5 => /lib64/libncurses.so.5 (0x00007f789706a000)
        libacl.so.1 => /lib64/libacl.so.1 (0x00007f7896e62000)
        libgpm.so.2 => /lib64/libgpm.so.2 (0x00007f7896c5c000)
        libdl.so.2 => /lib64/libdl.so.2 (0x00007f7896a57000)
        libperl.so => /usr/lib64/perl5/CORE/libperl.so (0x00007f78966c7000)
        libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f78964aa000)
        libc.so.6 => /lib64/libc.so.6 (0x00007f78960df000)
        libpython2.7.so.1.0 => /usr/lib64/libpython2.7.so.1.0 (0x00007f7895cd9000)
        libattr.so.1 => /lib64/libattr.so.1 (0x00007f7895ad5000)
        /lib64/ld-linux-x86-64.so.2 (0x00007f7897602000)
        libnsl.so.1 => /lib64/libnsl.so.1 (0x00007f78958ba000)
        libcrypt.so.1 => /lib64/libcrypt.so.1 (0x00007f7895681000)
        libutil.so.1 => /lib64/libutil.so.1 (0x00007f789547e000)

So Slackware's default vim requires libperl and libpython (amongst others). Removing either would break vim, and the ldd output would say "not found" against the corresponding library.

To determine which Slackware package provided a given file, you can "grep -H" for the filename in /var/log/packages/*.
NB: Remove any leading / from an absolute path (because packages are not relative to the absolute root directory, so the package descriptions don't contain a leading /).

For example:
Code:

marc@anvil:~$ grep -H "usr/lib64/perl5/CORE/libperl.so" /var/log/packages/*
/var/log/packages/perl-5.18.1-x86_64-1:usr/lib64/perl5/CORE/libperl.so


KRs,
Marc

bassmadrigal 03-01-2016 06:51 AM

Quote:

Originally Posted by dugan (Post 5508149)
Next time, though, there might be an easier way of dealing with it. The error message showed that a file called "libperl.so" was missing. If you look on the Slackware mirrors and on the CDs, there's a file called MANIFEST. That shows which package contains each file in the distribution. You can check that to find out which package contains libperl.so and needs to be reinstalled.

I find it easier to just go to http://packages.slackware.com and then select content from the "Mode" dropdown box. This allows you to search the file listing from anywhere, even when you don't have a manifest available (and don't want to check a mirror).

BW-userx 03-01-2016 07:01 AM

Quote:

Originally Posted by bassmadrigal (Post 5508383)
I find it easier to just go to http://packages.slackware.com and then select content from the "Mode" dropdown box. This allows you to search the file listing from anywhere, even when you don't have a manifest available (and don't want to check a mirror).

in your expert Slackware guru option ;) when do you think Slackware64 14.2 will be out of beta and into stable?
got a date, and exact time???? :D :D

that's a sweet link btw, :hattip:

But I don't go around "all nilly willy like, ripping out software" already pre-installed on Slackware. :D

I just do a full, install everything, then add what I want, and just leave that other part alone.

Hope OP learned something today... :newbie:

Just funnin' ya dude.

Didier Spaier 03-01-2016 07:09 AM

1 Attachment(s)
Quote:

Originally Posted by BW-userx (Post 5508391)
in your expert Slackware guru option ;) when do you think Slackware64 14.2 will be out of beta and into stable?
got a date, and exact time????

Hmm... Let me check...

Pic found on this page.


All times are GMT -5. The time now is 02:57 PM.