LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 08-20-2004, 07:16 AM   #1
JustinCoyan
Member
 
Registered: May 2004
Posts: 76

Rep: Reputation: 15
Some apps wont work in blackbox menu


I know the path is correct, because I can manually execute it by traversing through the directories. When I add the line to the blackbox menu file, I can see the app show up, but it won't run when clicked on. Any ideas why?

Here's the line, just like all my others are setup.

[exec] (gvim) {/home/nobody/usr/local/bin/gvim}
 
Old 08-20-2004, 07:26 AM   #2
binidiot
Member
 
Registered: May 2004
Location: Spain
Distribution: Debian Woody, FreeBSD 5.2.1
Posts: 106

Rep: Reputation: 15
wouldn't that path in blackbox config be /usr/local/bin/gvim instead of /home/nobody... just a thought.
 
Old 08-20-2004, 07:27 AM   #3
PenguinPwrdBox
Member
 
Registered: Oct 2003
Posts: 568

Rep: Reputation: 31
Talking

Yeah, I was gonna post here- until binidiot did - oh well
Looks like I did anyway
 
Old 08-20-2004, 07:45 AM   #4
JustinCoyan
Member
 
Registered: May 2004
Posts: 76

Original Poster
Rep: Reputation: 15
It should work the way that I had it. Just to rule it out, I tried the other way, no luck.
 
Old 08-20-2004, 07:51 AM   #5
PenguinPwrdBox
Member
 
Registered: Oct 2003
Posts: 568

Rep: Reputation: 31
Well, it won't work the way that you had it.....here is why.
Code:
[exec] (gvim) {/home/nobody/usr/local/bin/gvim}
That path is not vaild. There should be no ~/usr directory.
/usr is on the root drive.
If you want, you can try the following.

Code:
user@machine$ ln -s /usr ~/usr
See if that makes a difference.
 
Old 08-20-2004, 07:55 AM   #6
JustinCoyan
Member
 
Registered: May 2004
Posts: 76

Original Poster
Rep: Reputation: 15
Why will this not work in the blackbox menu file though?

I can manually type in:

'cd /home/nobody/usr/local/bin'
'gvim'

And the program executes perfectly. Why does the same pathname not work in the blackbox menu file?
 
Old 08-20-2004, 08:00 AM   #7
JustinCoyan
Member
 
Registered: May 2004
Posts: 76

Original Poster
Rep: Reputation: 15
Won't work if I move the file to the root directory either.
 
Old 08-20-2004, 08:16 AM   #8
Mephisto
Member
 
Registered: Oct 2002
Location: Washington D.C, USA
Distribution: Slack 12, Etch, Gutsy
Posts: 453

Rep: Reputation: 31
How about this, in a command line type "which gvim" and set the path to the path you see there.

in my case it is "/usr/bin/gvim" now if you are using a chroot jail or zero install or some other procedure that puts components in non-standard locations let us know. Otherwise the path "/home/nobody/usr/local/bin" makes no sense at all.

1) "nobody" is a reserved account used to execute things as a non priveledged user. Unless you created it by hand nobody does not have a home directory.
2) by default most programs are installed in a couple of directories under root, not in ANY users home directory. There are exceptions, such as zero-install programs, but gvim comes with Slack.
3) since manually typing in the path and attempting to execute gvim did not work it suggests deeper issues with your install. If gvim were installed correctly you should just be able to go to a command prompt and type gvim since it should be on the path.

Now given all these factors can you tell us how you installed gvim and why you think it should be in the path you described?
 
Old 08-20-2004, 08:18 AM   #9
JustinCoyan
Member
 
Registered: May 2004
Posts: 76

Original Poster
Rep: Reputation: 15
It is in the path I described.


I wasn't aware it came with Slack, so I downloaded it.

tar -zxvf (filename)
./configure

That's where it put the file.
 
Old 08-20-2004, 08:22 AM   #10
PenguinPwrdBox
Member
 
Registered: Oct 2003
Posts: 568

Rep: Reputation: 31
Oh!!!!
Well, dude, if that's the case, and the ./configure and make put those there, and all you have from that install is a /usr directory, do this:
Code:
user@machine$ su
Password:
root@machine# cp -fR ~/usr /
root@machine# env-update
root@machine# source /etc/profile
root@machine# exit
 
Old 08-20-2004, 08:23 AM   #11
JustinCoyan
Member
 
Registered: May 2004
Posts: 76

Original Poster
Rep: Reputation: 15
Ehh.....

What's that do?
 
Old 08-20-2004, 08:29 AM   #12
PenguinPwrdBox
Member
 
Registered: Oct 2003
Posts: 568

Rep: Reputation: 31
You were supposed to extract that to your root drive - that's why it's a /usr directory.
It will add the necc. files to /usr, which will add them to your path.
There may be dependant files that believe they reside in /usr, but you have it in ~/usr/
So, that might fix it.....
 
Old 08-20-2004, 08:32 AM   #13
JustinCoyan
Member
 
Registered: May 2004
Posts: 76

Original Poster
Rep: Reputation: 15
So after a download, should I get in the habit of moving the file to the root of the drive and installing from there?
 
Old 08-20-2004, 08:33 AM   #14
PenguinPwrdBox
Member
 
Registered: Oct 2003
Posts: 568

Rep: Reputation: 31
No, but for some - you have to. You'll be able to tell.
If you extract it, and you have a /usr, /lib/ dirs, then odds are, that's what it wants.
 
Old 08-20-2004, 08:35 AM   #15
Mephisto
Member
 
Registered: Oct 2002
Location: Washington D.C, USA
Distribution: Slack 12, Etch, Gutsy
Posts: 453

Rep: Reputation: 31
You are aware after .configure you need to do a "make" and "make install"? It should be in the INSTALL or README text in the source directory.

EDIT: Far easier to just get out your Slack install disks, if you have them, and install the package. If you don't have the Slackware disks then grab the package from one of the mirrors. I am not trying to be condescending but if you are having this much trouble with installing from source perhaps you should stick to pre-prepared packages till you read up some more.

Last edited by Mephisto; 08-20-2004 at 08:37 AM.
 
  


Reply



Posting 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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
blackbox menu jamaso Linux - General 6 04-13-2010 02:22 PM
2 probs, apt-get wont download anything. blackbox wont install minibootsy Linux - Software 2 06-10-2004 01:55 AM
Blackbox running apps? killer_bunny Linux - Software 3 12-17-2003 06:59 AM
Menu troubles: apps do not launch; unable to add apps hfinger Mandriva 1 08-22-2003 04:49 AM
Blackbox - menu Streams Linux - Software 6 05-14-2003 02:16 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 07:52 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration