GithubHelp home page GithubHelp logo

Comments (21)

Shougo avatar Shougo commented on July 17, 2024

I think gcc is not installed in your system.
You should check MinGW installation.

from vimproc.vim.

Praful avatar Praful commented on July 17, 2024

I came across this issue today. I'm using gvim 32-bit and am trying out a 64-bit version.

The mingw32.mak file has the line CC=mingw32-gcc

The mingw64.mak file has the line CC=x86_64-w64-mingw32-gcc

On the RubyInstaller site, you can download the MinGW 32-bit and 64-bit dev kits.

Whilst the 64-bit dev kit has x86_64-w64-mingw32-gcc.exe, the 32-bit one does not have mingw32-gcc.exe. Instead it has i686-w64-mingw32-gcc.exe. I don't know if newer installations of MinGW follow this naming convention.

In fact, both the 32-bit and 64-bit dev kits have a gcc.exe, which is an alias for the appropriate compiler i.e. on the 32-bit dev kit gcc.exe is the 32-bit compiler and on the 64-bit dev kit, it is the 64-bit compiler.

If you can't get vimproc to compile using MinGW, do this:

  1. Download and install the 32-bit or 64-bit dev kit from the above RubyInstaller link.
  2. Install vimproc (git clone etc) as mentioned on this site.
  3. In a command prompt, go to the folder containing vimproc (cd [your folder]).
  4. Run devkitvars.bat, which is in the dev kit folder. This will update the PATH.
  5. If you're using 32-bit vim, then edit mingw32.mak in the vimproc folder and change the line beginning CC=mingw32-gcc to CC=gcc or to CC=i686-w64-mingw32-gcc
  6. To compile the vimproc DLL, run make -f mingw32.mak (32-bit) or make -f mingw64.mak (64-bit).

from vimproc.vim.

Shougo avatar Shougo commented on July 17, 2024

If you're using 32-bit vim, then edit mingw32.mak in the vimproc folder and change the line beginning CC=mingw32-gcc to CC=gcc or to CC=i686-w64-mingw32-gcc

You don't have to do it.

make -f mingw64.mak CC=i686-w64-mingw32-gcc

from vimproc.vim.

Shougo avatar Shougo commented on July 17, 2024

#124
#123
#122

Related issues.

from vimproc.vim.

Shougo avatar Shougo commented on July 17, 2024

I changed mingw32.mak uses "gcc" name by default.
If you have not "gcc" named binary, you must change $CC value.

from vimproc.vim.

Praful avatar Praful commented on July 17, 2024

Using gcc makes sense. Thanks for the tip about using the command line
CC switch.

On Wednesday, May 21, 2014, Shougo [email protected] wrote:

I changed mingw32.mak uses "gcc" name by default.
If you have not "gcc" named binary, you must change $CC value.


Reply to this email directly or view it on GitHubhttps://github.com//issues/86#issuecomment-43820315
.

Bye for now

Praful

from vimproc.vim.

codeur4 avatar codeur4 commented on July 17, 2024

I try to install vimproc an on window 7
My screen on gVim when I run :VimProcInstall :
vimprocinstall
I tried to follow step by step the suggested method by Praful. It don't work and I can't figure out what is the problem. I have the followinf error :

make (e=2): the specified file is not found

vimproc
Please help

from vimproc.vim.

Shougo avatar Shougo commented on July 17, 2024

I think gcc is not installed.

from vimproc.vim.

codeur4 avatar codeur4 commented on July 17, 2024

I reinstall MinGW from an other source ; I found it there
I noticed that I have now gcc file in the bin directory. So you were right.
I updated my path and run again make -f make_mingw32.mak :
gcc1
...
gcc2
But if I do make -f make_mingw64.mak :
gcc3
I think it is ok, but if I run :VimProcInstall again in Vim I have again :
vimprocnotfound

I googled 'cannot find -lmsvcrt' but found nothing
I must have a bad version of something (64 instead of 32 bit), but I can't figure out what I have to do

from vimproc.vim.

Shougo avatar Shougo commented on July 17, 2024

You should read the message and the documentation....
Your installed vimproc binary is 32bit.
Because, you executed "make -f make_mingw64.mak" command.
But your Vim is 32bit. So vimproc binary is not loaded.
You must build 32bit binary.

from vimproc.vim.

Shougo avatar Shougo commented on July 17, 2024

Hm. Your used MinGW is broken to build 32bit.
You should use the MinGW binary.

http://tdm-gcc.tdragon.net/download

from vimproc.vim.

codeur4 avatar codeur4 commented on July 17, 2024

Ok thank you.
I ran the first link tdm-gcc-5.1.0-3.exe
Now, in my C:\Tools\TDM-GCC-32\bin path I have gcc (automatically put in my system path) :
var_gcc
I also remind that I have make (put in my user path) :
var_make
that I took from the ruby installer link proposed by Praful :
mingwinstall

And now I have :
result
Is it ok or not, I don't know.
The good thing in Vim is that when I run :VimProcInstall I have no error message :
vimprocinstall
And I have no error when I run the two following commands :
unitecommand
But the first command with async don't show me any proposal and I don't know why.
You think it is an other problem or I have done something wrong ?

from vimproc.vim.

Shougo avatar Shougo commented on July 17, 2024

You should remove the old vimproc binary.
Reinstall vimproc is recommended.

from vimproc.vim.

codeur4 avatar codeur4 commented on July 17, 2024

I have already clean and install VimProc from Vim.
I have delete C:\Users\herve.vim\bundle\vimproc.vim\autoload\vimproc_win32.dll.
then run (same as :VimProcInstall):
dll_ok
Same result : no proposal with async.
Or maybe I didn't understand what you mean by 'remove the old vimproc binary'
I am confused

from vimproc.vim.

codeur4 avatar codeur4 commented on July 17, 2024

I have suddenly a doubt. Is it the right way to install vimProc with Vundle?
vundle install
Or shall I must add something like :
{'build': {'windows': 'make -f make_mingw32.mak'}} ?
Well, I tried this :
plug
but nothing change.

from vimproc.vim.

Shougo avatar Shougo commented on July 17, 2024

Hmmm..

Please test vimproc works.
:echo vimproc#system('dir')

If vimproc works, it is your async binary problem.

from vimproc.vim.

codeur4 avatar codeur4 commented on July 17, 2024

For information I have reinstall vim64 because I run into a windows 64bit system. but the problem still remains the same.
:echo vimproc#system('dir') return
vimprocsystem
It works, so according to you it is my async binary. Do you have an idea how I can fix it?
Thanks for the time you spent with me

from vimproc.vim.

Shougo avatar Shougo commented on July 17, 2024

Please upload your .vimrc file and please upload unite screenshot using <Plug>(unite_print_message) in unite buffer.

from vimproc.vim.

codeur4 avatar codeur4 commented on July 17, 2024

Here is my vimrc at the moment.

please upload unite screenshot using (unite_print_message)

How? I looked for <Plug>(unite_print_message_log) into unite doc but I don't understand how use it?

from vimproc.vim.

Shougo avatar Shougo commented on July 17, 2024

OK. I get it. You need set g:unite_source_rec_async_command.
Please read unite.vim documentation.

                    *g:unite_source_rec_async_command*
g:unite_source_rec_async_command
        Specify the filelist command and arguments in file_rec/async
        source.  It is arguments List.
>
        " Using ack-grep as recursive command.
        let g:unite_source_rec_async_command =
        \ ['ack', '-f', '--nofilter']

        " Using ag as recursive command.
        let g:unite_source_rec_async_command =
                \ ['ag', '--follow', '--nocolor', '--nogroup',
        \  '--hidden', '-g', '']
<
        The default value is ["find", "-L"] which follows symbolic
        links to have the same behaviour as file_rec, and the
        args(|g:unite_source_rec_find_args|).
        Because, "find" command is fastest.
        Note: In windows environment, you must install file list
        command and specify the variable.

from vimproc.vim.

codeur4 avatar codeur4 commented on July 17, 2024

Awsome !
Thanks

from vimproc.vim.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.