./vi won't execute vi?

./vi won't execute vi?

Post by John Winte » Sun, 23 Nov 1997 04:00:00





Quote:>I had to resort to booting up my Linux partition from an
>install disk and then mounting the partition with
>mount /dev/hda2 /mnt.  I then changed directories to
>/mnt/home/bin, which contained a copy of vi.  I tried
>executing it, but could get Linux to recognize that
>it was vi in the current directory that I wanted.  I
>tried ./vi and still no luck.

What sort of error message did you get when you typed ./vi?
You didn't have the disc mounted noexec did you?

John
--
John Winters.  Wallingford, Oxon, England.

Want to buy Linux CDs cheaply in the UK?  Join the Linux Buyers' Consortium.
See <http://www.polo.demon.co.uk/lbc.html>

 
 
 

./vi won't execute vi?

Post by wayne t. wats » Sun, 23 Nov 1997 04:00:00


I had to resort to booting up my Linux partition from an
install disk and then mounting the partition with
mount /dev/hda2 /mnt.  I then changed directories to
/mnt/home/bin, which contained a copy of vi.  I tried
executing it, but could get Linux to recognize that
it was vi in the current directory that I wanted.  I
tried ./vi and still no luck.  What's going on?
--
    Wayne T. Watson  |                              |     /  *              
   The Software Hill |  Consulting in C, UNIX, C++  |    /              .    *
   Mountain View, CA |  Motif, X-Windows, Graphics  |   //            *
    (650) 969-4233   |    Statistics, Science,      |  o         *      .

         Web Page: http://www.netcom.com/~softhill (Updated 11/5/97)

   "A black hole is what you get when God divides by zero" - Stephen Wright

        (Note: Humpty Dumpty was pushed.)
   (Or was he just covering up because he was really a rotten egg?)

 
 
 

./vi won't execute vi?

Post by Bjarne Nygaar » Wed, 26 Nov 1997 04:00:00


Hi...


> I had to resort to booting up my Linux partition from an
> install disk and then mounting the partition with
> mount /dev/hda2 /mnt.  I then changed directories to
> /mnt/home/bin, which contained a copy of vi.  I tried
> executing it, but could get Linux to recognize that
> it was vi in the current directory that I wanted.  I
> tried ./vi and still no luck.  What's going on?

I guess you forgot to have a 'statically linked vi' :(
If your libs are not mounted and in your path you have problems.

> --
>     Wayne T. Watson  |                              |     /  *
>    The Software Hill |  Consulting in C, UNIX, C++  |    /              .    *
>    Mountain View, CA |  Motif, X-Windows, Graphics  |   //            *
>     (650) 969-4233   |    Statistics, Science,      |  o         *      .

>          Web Page: http://www.netcom.com/~softhill (Updated 11/5/97)

>    "A black hole is what you get when God divides by zero" - Stephen Wright

>         (Note: Humpty Dumpty was pushed.)
>    (Or was he just covering up because he was really a rotten egg?)

cu
--
+----------------------------------------------------------------------+

|          ---this space is not intentionally left blank---            |
+----------------------------------------------------------------------+
 
 
 

./vi won't execute vi?

Post by tom » Wed, 26 Nov 1997 04:00:00



> I had to resort to booting up my Linux partition from an
> install disk and then mounting the partition with
> mount /dev/hda2 /mnt.  I then changed directories to
> /mnt/home/bin, which contained a copy of vi.  I tried
> executing it, but could get Linux to recognize that
> it was vi in the current directory that I wanted.  I
> tried ./vi and still no luck.  What's going on?

Path maybe?
 
 
 

./vi won't execute vi?

Post by Trent Piep » Thu, 27 Nov 1997 04:00:00




Quote:>I had to resort to booting up my Linux partition from an
>install disk and then mounting the partition with
>mount /dev/hda2 /mnt.  I then changed directories to
>/mnt/home/bin, which contained a copy of vi.  I tried
>executing it, but could get Linux to recognize that
>it was vi in the current directory that I wanted.  I
>tried ./vi and still no luck.  What's going on?

I bet the problem is that your install disk has a.out libraries, but the vi
from your hard disk is an ELF binary.  You need to get a staticlly linked vi
or an a.out vi.  You might try the vi on the slackware rescue disk, it will
run with the library from the slackware root disk.

--
|Gazing up to the breeze of the heavens \ on a quest, meaning, reason  |
|came to be, how it begun \ all alone in the family of the sun         |
|curiosity teasing everyone \ on our home, third stone from the sun.   |

 
 
 

1. can I have vi 'edit-mode' commands executed as a macro

I have a constant need to format data by placing a <tab> preceding each
line. To do this I use vi (substitute command) as follows :-
:%s/^/     /g
this has the affect of tab'ing out the entire doc which I then paste
into my web page. But I want to use a macro here so that I do not have
to enter the substitute command sequence each time. I tried 'abbr' in
vi but it does not execute the command simply prints it as text.....so
how can I abbreviate this command for quick execution - and how can I
save it for use in all future vi sessions.

thanks.
PS : if anyone has a better way of achieving this affect  - then let me
know

2. sunrpc

3. Can't execute ./vi from bin?

4. redhat 5.0 - mouse/screen problems /w toshiba laptop

5. vi won't scroll back?

6. MS XP Slogan was stolen

7. why doesn#t "set -o vi" enable vi style cmdln editing?

8. Help with redhat 3.03 install on win95 system, please

9. how do i get VI to handle multibyte chars (VI on a PC)

10. Need help with VI, is there a VI news group?

11. Can I make tcsh "vi" bindings more like ksh "vi"?

12. vi, oh vi, must I suffer so?

13. Odd Solaris problem: file is seen by 'vi' but not 'ls' ???