Vi doesnt work


 
Thread Tools Search this Thread
Operating Systems AIX Vi doesnt work
# 8  
Old 09-21-2011
Hi ygemici,

The problem just surfaced a few weeks ago, cant say wat caused man.. too many guys working on it.

Code:
# cat /etc/vim/vimrc  /usr/share/vim/vimrc $HOME/.vimrc
cat: 0652-050 Cannot open /etc/vim/vimrc.
cat: 0652-050 Cannot open /usr/share/vim/vimrc.
cat: 0652-050 Cannot open //.vimrc.

I couldnt get the damn vim to work on AIX 6.1.. installed rpms from IBM site.. still dont work at all.

Code:
# vim example
-bash: vim: command not found
# which vim
which: 0652-141 There is no vim in /usr/bin /etc /usr/sbin /usr/ucb /usr/bin/X11 /sbin /usr/java5/jre/bin /usr/java5/bin.

lppchk returns nothing (everythin looks ok there)
# 9  
Old 09-21-2011
Quote:
Originally Posted by muzahed
Hi ygemici,

The problem just surfaced a few weeks ago, cant say wat caused man.. too many guys working on it.

Code:
# cat /etc/vim/vimrc  /usr/share/vim/vimrc $HOME/.vimrc
cat: 0652-050 Cannot open /etc/vim/vimrc.
cat: 0652-050 Cannot open /usr/share/vim/vimrc.
cat: 0652-050 Cannot open //.vimrc.

I couldnt get the damn vim to work on AIX 6.1.. installed rpms from IBM site.. still dont work at all.

Code:
# vim example
-bash: vim: command not found
# which vim
which: 0652-141 There is no vim in /usr/bin /etc /usr/sbin /usr/ucb /usr/bin/X11 /sbin /usr/java5/jre/bin /usr/java5/bin.

lppchk returns nothing (everythin looks ok there)
firstly lets look file details.
Code:
# ls -l /usr/bin/vi

and then let's try to start again..

download
Code:
ftp://public.dhe.ibm.com/aix/freeSoftware/aixtoolbox/INSTALLP/ppc/rpm.rte
# installp -qaXgd rpm.rte rpm.rte

Code:
# wget ftp://public.dhe.ibm.com/aix/freeSoftware/aixtoolbox/RPMS/ppc/vim/vim-enhanced-6.3-1.aix5.1.ppc.rpm
# rpm -ivh --replacepkgs vim-enhanced-6.3-1.aix5.1.ppc.rpm
# vim example


Last edited by ygemici; 09-21-2011 at 11:52 AM..
This User Gave Thanks to ygemici For This Post:
# 10  
Old 09-21-2011
ygemici, You are the man dawg!!.. thanks.. actually i was tryin vim common n vim minimal.. jus forgot about tryin vim enhanced.. However, pls help me figure out what the hell is wrong with vi editor.. Here is the output u wanted.. I dont think there is a way to uninstall vi on aix - is it???

Code:
$ ls -l /usr/bin/vi
-r-xr-xr-x    5 bin      bin          361778 Sep 27 2008  /usr/bin/vi

Please guys, help me determine wat the hell is wrong with vi editor.. i jus wan the sucker to work.. Smilie
# 11  
Old 09-21-2011
hi my friend, can you write the output?
Code:
# truss /usr/bin/vi

# 12  
Old 09-23-2011
Hammer & Screwdriver vi not functioning

hi Smilie
login as root
#ls -ltr
check the /tmp permission,owner & check the stickybit is set....
drwxrwxrwt 23 bin bin 8192 Sep 23 16:30 tmp
then
cd var
#ls -ltr
Check the /var/tmp permission ,owner & check the stickybit is set as ...
drwxrwxrwt 2 bin bin 4096 Sep 23 15:21 tmp

Now vi will workSmilie
These 2 Users Gave Thanks to balumurugesh For This Post:
# 13  
Old 09-23-2011
Ygemici ; balumurugesh.. thanks guys.. but i can only try those out on sunday!! thanks a ton.. Smilie
# 14  
Old 09-25-2011
Guys, the /var/tmp was missing.. Smilie vi works fine after i created /var/tmp with 755 permissions.. Thanks a ton for helpin me solve this unusual problem. Smilie
This User Gave Thanks to muzahed For This Post:
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Red Hat

Beginner : sftp doesnt work

Hello, I really appreciate any help on this. Have to connect to external server via sftp. Our server is Linux machine Linux our.server.com 3.10.0-514.26.2.el7.x86_64 #1 SMP Tue Jul 4 15:04:05 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux I generated the keys, put them in /root/.ssh, sent... (3 Replies)
Discussion started by: billy5
3 Replies

2. UNIX for Dummies Questions & Answers

why doesnt it work?

I am trying to print out two fields in a file using awk. So, I have got awk -F '\t' 'NF = 2 {print $1 $2 "]"}' two.txt in a script called what.awk When i run this version like this - ./what.awk then it runs however I want to run the program like this awk -f what.awk two.txt. When I... (8 Replies)
Discussion started by: The undertaker
8 Replies

3. Shell Programming and Scripting

compiler doesnt work

this is my file I have written. // My first C++ program #include <iostream> int main() { std::cout << "Hi there!" << std::endl"; std::cout << "This is my first C++ program" << std::endl"; return(0); } This is the error I get, why? $ g++ first.cpp ksh: g++: not found (1 Reply)
Discussion started by: gustave
1 Replies

4. Shell Programming and Scripting

loop doesnt work

It just does the break...even though the files are not the same... # Compare extracts #========================================== count=0 while (( count < 5 )) do (( count+=1 )) echo "Try $count" file1=$(ls -l /tmp/psjava.xml|... (5 Replies)
Discussion started by: sigh2010
5 Replies

5. AIX

Crontab file doesnt seem to work

Hi all. Could anyone explain me why this simple cron job doesnt work: % whoami system % crontab -l * * * * * /usr/bin/touch /home/system/foo (3 Replies)
Discussion started by: bsddaemon
3 Replies

6. Red Hat

ldapsearch doesnt work.

Hii All, I am using openldap v2.3 on redhat El-4. When i run ldapsearch it returns all the entries. The command runs successfully. But when I run the ldapsearch with following filter option it doesnt work and immediately returns to the shell. ldapsearch uidNumber>=2000 I've started slapd... (0 Replies)
Discussion started by: shamik
0 Replies

7. UNIX for Dummies Questions & Answers

cp doesnt work - Help

When trying to copy a file in Solaris 8 it doesnt copy file or give a error. This worked 100% until the 29th. I've checked the rights and everything seems fine: drwxrwxrwx 2 bmuser bmgroup 11776 Jan 3 10:32 spool This is the file I want to copy: -rwxrwxrwx 1 bmuser bmgroup ... (26 Replies)
Discussion started by: rudi.okelly
26 Replies

8. HP-UX

ls command doesnt work

Good Day I mistakely renamed the dld.sl file in the /usr/lib directory. When i try to ls/ftp into the box i get this error :eek: crt0: ERROR couldn't open /usr/lib/dld.sl errno:000000002 I have tried to rename it back from the renamed file to the original file name, but it gives me the... (2 Replies)
Discussion started by: shawnbishop
2 Replies

9. UNIX for Dummies Questions & Answers

cd.. doesnt work

hi when i want to go to previous directory by typing cd.. i get the following message $ cd.. ksh: cd..: not found Please help rintingtong (2 Replies)
Discussion started by: rintingtong
2 Replies

10. Shell Programming and Scripting

why doesnt my script work!!!

Is there a utility or command I can use to tell the number of decimal places a number has. For instance, if the number is 432, it will give hundred as the number of decimal places. (7 Replies)
Discussion started by: Heedunk
7 Replies
Login or Register to Ask a Question