SEARCH

Enter your search query in the box above ^, or use the forum search tool.

You are not logged in.

#1 2012-04-04 19:51:00

neil_fl
Member
Registered: 2012-03-30
Posts: 22

gksudo ./ and gksudo bash

during installation of vmware,
i tried this and got this error

neil@crunchbang:~$ gksudo ./vmware.bundle
(gksudo:7159): GLib-CRITICAL **: g_str_has_prefix: assertion `str != NULL' failed

then i tried

neil@crunchbang:~$ gksudo bash vmware.bundle
Extracting VMware Installer...done.

which did it.

i just want to know the difference b/w ./ and bash commands ?

Last edited by neil_fl (2012-04-04 19:52:14)

Offline

Be excellent to each other!

#2 2012-04-05 04:27:53

johnraff
#!Drunkard
From: Nagoya, Japan
Registered: 2009-01-07
Posts: 2,467
Website

Re: gksudo ./ and gksudo bash

Could it be the ./vmware.bundle file is not executable? Then you'd need to call bash to execute it for you.

The ./ issue is related to what executable files are in your PATH. (Run echo $PATH in a terminal to see it.) If you type a single word command in a terminal bash will look in your PATH for it. PATH does not include the current working directory for security reasons, so if you want to run an executable there you have to explicitly call it with ./executable.

If you're running it in a terminal you should probably use sudo instead of gksudo. gksudo ( or gksu ) is for running programs that open a GTK window, like geany or thunar.


John
--------------------
( a boring Japan blog , and idle twitterings )

Offline

Board footer

Powered by FluxBB

Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.

Debian Logo