Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > Compiling vim-5.7 source from Softrak

Compiling vim-5.7 source from Softrak
Thread Tools
Fresh-Faced Recruit
Join Date: Oct 2000
Location: Undisclosed military installation on Charon
Status: Offline
Reply With Quote
Oct 21, 2000, 10:34 PM
 
Hey all,

I downloaded the source for vim-5.7 from Softrak and tried to compile it like this:

$ ./configure
$ make

It all goes fine until it reaches here:

cc -c -I. -Iproto -DHAVE_CONFIG_H -O2 --traditional-cpp -I/usr/X11R6/include term.c
term.c:32: termcap.h: No such file or directory
make[1]: *** [term.o] Error 1
make: *** [all] Error 2

I fiddled around a little, and found the directory that the header files seem to be stored in: /usr/include. And sure enough, there was no "termcap.h" file.

Is there any way around this, so I can compile the code?

Thanks

-VW
     
s1m0n
Guest
Status:
Reply With Quote
Oct 22, 2000, 04:56 AM
 
Hi all,

Yes, VirtualWolf is right, ./configure does not work "as is". I had to add some parameters. Since I have already installed or at least tried to install things like ncurses, termcap etc., my settings might not work for you, but I recommend you give this a try:

./configure \
--with-tlib=ncurses \
--enable-max-features \
--disable-gpm \
--without-x \
--disable-gui

If this doesn't work, perhaps you should try leaving out the first parameter (ncurses).
Otherwise feel free to post the error message here and possibly I am able to help you.

If you want, I can send you the binaries or the "config.h" file or whatever, just tell me.


Good luck!
simon
     
Fresh-Faced Recruit
Join Date: Oct 2000
Location: Undisclosed military installation on Charon
Status: Offline
Reply With Quote
Oct 22, 2000, 09:31 PM
 
Simon --

You said you installed termcap...could you tell me how to do that? (From what I can tell, that's what missing..."termcap.h: No such file or directory").

I'll try compiling it with those parameters, though. I'll get back to you on how it goes

-VW
     
s1m0n
Guest
Status:
Reply With Quote
Oct 23, 2000, 01:17 PM
 
VW: If it shouldn't work out, you could try to install the termcap (TERMinal CAPabilities database). You can get it from a GNU mirror. Here's the list of mirrors: http://www.gnu.org/order/ftp.html

It should be in the /gnu/termcap/ directory. My file is called "termcap-1.3.tar.gz".

Good luck.
simon
     
Forum Regular
Join Date: Oct 2000
Location: Portland, OR USA
Status: Offline
Reply With Quote
Oct 23, 2000, 09:00 PM
 
I'm having problems with the Makefile. I run configure, but when I run make, it runs configure repeatedly (forever as far as I can tell). I'm wondering if this is related to the fact that other Makefiles have reported a clock skew when they complete. I have tried compiling with both, vim 5.7 and vim 6.0i. Thanks.
     
Fresh-Faced Recruit
Join Date: Oct 2000
Location: Undisclosed military installation on Charon
Status: Offline
Reply With Quote
Oct 23, 2000, 09:33 PM
 
Woohoo! It compiles!

Thanks simon!

Unfortunately, there's still a problem: in Insert mode, if I press one of the arrows keys it generates characters, instead of moving the cursor: pressing Up produces a capital A, down is B, right is C, and left is D.

Something's screwy with the keyboard layout it would appear. Any ideas?

Thanks again!

-VW
     
s1m0n
Guest
Status:
Reply With Quote
Oct 24, 2000, 02:52 PM
 
Congratulations, VirtualWolf.
The problem with the arrow keys is unfortunately quite common with vi, e.g. on Solaris. Usually, the cure is to ... install vim

On my Mac, it works, but I don't know why. I have all settings set to their default values.
Probably you have already fiddled around with your terminal.app's settings and the settings in vim?

Good fiddling.
simon
     
Fresh-Faced Recruit
Join Date: Oct 2000
Location: Undisclosed military installation on Charon
Status: Offline
Reply With Quote
Oct 24, 2000, 08:46 PM
 
The problem with the arrow keys is unfortunately quite common with vi, e.g. on Solaris. Usually, the cure is to ... install vim

On my Mac, it works, but I don't know why. I have all settings set to their default values.
LOL . Well, vi works fine, and vim doesn't...maybe I'm just lucky or something

All the vim settings are default, and I think the only thing I've changed in the Terminal prefs are the text and background colours...

And I'm going to have another whirl at compiling hx soon...I've got the binary installed and working perfectly, but I want to see if I can get it to compile

-VW
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 09:49 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2