Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Vi : Segmentation fault --- How To Solve
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
Olivier_P
n00b
n00b


Joined: 02 Aug 2002
Posts: 5

PostPosted: Fri Aug 02, 2002 3:50 pm    Post subject: Vi : Segmentation fault --- How To Solve Reply with quote

Hi,

As I had the the problem, but now, the solution, my purpose is to write a really short article to explain how to succed in Vi installation. This is not a pretentious work, I just would like to help Newbies. So please, feel free to modify and correct it ! And I apologize in advance for my bad english, I'm french...


THE PROBLEM :
------------------
The problem is that if you want to use 'vi', you do :
Code:
#emerge vi

After, when you run Vi in a console, you obtain : Segmentation fault...
If you start it in an Xwindow eterm window, it works correctly...

To solve this problem simply, just type
Code:
#export TERM=vt100
or
#export TERM=vt200


ALTERNATIV SOLUTION : Use VIM instead VI
----------------------------------------------------
Vim is a vi clone with a lot of interesting features. In my mind, it's better to use it, but it just a question of choice

The main "problem" is that if you try to type :
Code:
emerge --pretend vim

you will se that Portage wants add a lot of dependecies like Gnome parts, X-free ... This is because Vim can be compiled with a graphical support.

So there's two option :
1. Install Vim with X and Gnome support :
------------------------------------------------
Juste type
Code:
#emerge vim

and enjoy

2. Install Vim without X and Gnome support
--------------------------------------------------
a. Set up your "USE" variable like this:
Code:
#export USE="-X -gnome -gtk -python"

b. Run
Code:
#emerge vim



IMPORTANT :
----------------

If you have first installed Vi and after, Vim, you should have a symbolic link automatically created, and which allow you to type 'vi', but in fact you'll use 'vim'

If not, you have to create this symbolic link manually.


Hope this is helpfull !

Olivier
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum