AIX Open Source

AIX Open Source

Share your experiences and connect with fellow developers to discover how to build and manage open source software for the AIX operating system

 View Only
  • 1.  VIM installed but I cannot find vim command

    Posted Fri July 13, 2018 10:44 AM

    Originally posted by: CBROWN


    All, I just installed vim-enhanced-8.0-1.aix6.1.ppc.rpm on AIX 7200-00-01-1543 and it looks good except I cannot find the command. It did not link anything to /usr/bin or anything like that. When I do a find I see that the vim folder exists out in freeware but I do not see the actual vim command to link myself. What have I missed?



  • 2.  Re: VIM installed but I cannot find vim command

    Posted Fri July 13, 2018 10:58 AM

    Originally posted by: AyappanP


    You can find the command in /opt/freeware/bin and i see it also symlinked to /usr/bin.

    Check whether the rpm is installed properly

    rpm -qa | grep vim

    And also we have a newer release 8.0-2 . Please update to that as well.

     



  • 3.  Re: VIM installed but I cannot find vim command

    Posted Fri July 13, 2018 11:10 AM

    Originally posted by: CBROWN


    This is what I get:

    # rpm -qa | grep vim
    vim-common-8.0-1.ppc
    #

     

     

    and

     

    # ls -l /opt/freeware/bin
    total 2464
    -rwxr-xr-x    1 root     system        33530 Jul  8 2017  bunzip2
    -rwxr-xr-x    1 root     system        33530 Jul  8 2017  bzcat
    -rwxr-xr-x    1 root     system        33530 Jul  8 2017  bzip2
    -rwxr-xr-x    1 root     system         9493 Jul  8 2017  bzip2recover
    -rwxr-xr-x    1 root     system        15116 Jul  8 2017  file
    -rwxr-xr-x    1 root     system        35308 Jul  1 2016  funzip
    -rwxr-xr-x    1 root     system          499 Jul  8 2017  gendiff
    -rwxr-xr-x    1 root     system         2314 Jul  8 2017  gunzip
    -rwxr-xr-x    1 root     system         5940 Jul  8 2017  gzexe
    -rwxr-xr-x    1 root     system       148509 Jul  8 2017  gzip
    -rwxr-xr-x    1 root     system        26376 Jul  8 2017  install-info
    -rwxr-xr-x    1 root     system         5281 Feb 24 2009  mkpasswd
    -rwxr-xr-x    1 root     system        94446 Jul  8 2017  patch
    -rwxr-xr-x    1 root     system        24598 Jul  8 2017  rpm
    -rwxr-xr-x    1 root     system        12986 Jul  8 2017  rpm2cpio
    -rwxr-xr-x    1 root     system        44670 Jul  8 2017  rpmbuild
    -rwxr-xr-x    1 root     system        21842 Jul  8 2017  rpmdb
    -rwxr-xr-x    1 root     system        17459 Jul  8 2017  rpmkeys
    -rwxr-xr-x    1 root     system        24598 Jul  8 2017  rpmquery
    -rwxr-xr-x    1 root     system        18992 Aug 30 2017  rpmsign
    -rwxr-xr-x    1 root     system        20540 Aug 30 2017  rpmspec
    -rwxr-xr-x    1 root     system        24598 Jul  8 2017  rpmverify
    -rwxr-xr-x    2 root     system       190932 Jul  1 2016  unzip
    -rwxr-xr-x    1 root     system        85494 Jul  1 2016  unzipsfx
    -rwxr-xr-x    1 root     system        16287 Jan  2 2018  xxd
    -rwxr-xr-x    1 root     system         1950 Jul  8 2017  zcat
    -rwxr-xr-x    1 root     system         1790 Jul  8 2017  zcmp
    -rwxr-xr-x    1 root     system         5777 Jul  8 2017  zdiff
    -rwxr-xr-x    1 root     system          153 Jul  8 2017  zegrep
    -rwxr-xr-x    1 root     system          153 Jul  8 2017  zfgrep
    -rwxr-xr-x    1 root     system         2144 Jul  8 2017  zforce
    -rwxr-xr-x    1 root     system         5955 Aug  4 2017  zgrep
    -rwxr-xr-x    1 root     system         2953 Jul  1 2016  zipgrep
    -rwxr-xr-x    2 root     system       190932 Jul  1 2016  zipinfo
    -rwxr-xr-x    1 root     system           62 Jul  8 2017  zless
    -rwxr-xr-x    1 root     system         1923 Jul  8 2017  zmore
    -rwxr-xr-x    1 root     system         5060 Jul  8 2017  znew
    #

     



  • 4.  Re: VIM installed but I cannot find vim command

    Posted Fri July 13, 2018 11:12 AM

    Originally posted by: AyappanP


    The binaries come with vim-enhanced package. You mentioned you have installed vim-enhanced. But in the "rpm-qa" output it is not listed.



  • 5.  Re: VIM installed but I cannot find vim command

    Posted Fri July 13, 2018 12:44 PM

    Originally posted by: CBROWN


    My apologies. i only installed vim-common. Same version. I copy/pasted from the wrong place. Do I need more packages besides vim-common?



  • 6.  Re: VIM installed but I cannot find vim command

    Posted Sun July 15, 2018 10:26 PM

    Originally posted by: Chris Gibson


    vim-enhanced-8.0-2.ppc



  • 7.  Re: VIM installed but I cannot find vim command

    Posted Mon July 16, 2018 08:55 AM

    Originally posted by: CBROWN


    Thanks for helping so far. I have tried to install both vim-common and vim-enhanced. Common installed no problem but I am having difficulties with enhanced.

    # rpm -iv vim*.rpm
    error: Failed dependencies:
            gettext is needed by vim-enhanced-8.0-1.ppc
            python >= 2.6.2 is needed by vim-enhanced-8.0-1.ppc
            libncurses.a(libncurses.so.6) is needed by vim-enhanced-8.0-1.ppc
            libpython2.7.a(libpython2.7.so) is needed by vim-enhanced-8.0-1.ppc

     

    Where can I get a good dependency tree. If I try to install gettext i get yet more missing dependencies.



  • 8.  Re: VIM installed but I cannot find vim command

    Posted Wed July 18, 2018 04:55 AM

    Originally posted by: mjpap


    Do yourself a favor and use yum.sh to install yum as described on the "AIX Toolbox for Linux Applications" main page. Recently I tried to install git manually but the dependencies (and dependencies of dependencies, etc.) soon became overwhelming. One problem with my manual install attempt was that only the most recent version of packages was listed on the website, and some packages needed older versions as dependencies.

    With yum the installation of git was really straight-forward. The yum installation itself installs some big packages like python but it was absolutely worth it IMHO, also for easy updates.



  • 9.  Re: VIM installed but I cannot find vim command

    Posted Wed July 18, 2018 02:33 PM

    Originally posted by: sanket


     

    All of these packages are present in AIX toolbox

    https://www.ibm.com/developerworks/aix/library/aix-toolbox/alpha.html

    But as mentioned by Martin best way is to install yum and use yum to install any package form AIX toolbox.

    If you can not install yum in your environment then you need to download dependent packages manually and install.