• Welcome to Overclockers Forums! Join us to reply in threads, receive reduced ads, and to customize your site experience!

Emerge issue

Overclockers is supported by our readers. When you click a link to make a purchase, we may earn a commission. Learn More.

Shelnutt2

Overclockers Team Content Editor
Joined
Jun 17, 2005
Location
/home/
I can't seem to get games to work after I emerge them.

Right now I'm trying to get globulation2 (glob2) to work. I emerged it, and it shows up in my KDE and Gnome menu's. When I click it nothing happens. I check and the shortcuts are trying to launch it via the command glob2. When I enter that in a terminal it says, "bash: glob2: command not found". I tried as root and as my user. This is kind of frustrating, as this happens to any games I emerge. It is like if I have emerged it but not really.

localhost shelnutt # locate glob2
/var/cache/edb/dep/usr/portage/games-strategy/glob2-0.8.21
/var/cache/edb/dep/usr/portage/games-strategy/glob2-0.8.23
/usr/portage/metadata/cache/games-strategy/glob2-0.8.21
/usr/portage/metadata/cache/games-strategy/glob2-0.8.23
/usr/portage/games-strategy/glob2
/usr/portage/games-strategy/glob2/Manifest
/usr/portage/games-strategy/glob2/files
/usr/portage/games-strategy/glob2/glob2-0.8.23.ebuild
/usr/portage/games-strategy/glob2/ChangeLog
/usr/portage/games-strategy/glob2/metadata.xml
/usr/portage/games-strategy/glob2/glob2-0.8.21.ebuild
localhost shelnutt # locate globulation
localhost shelnutt # locate Globulation
localhost shelnutt # locate Glob2
localhost shelnutt # locate Globulation\ 2
localhost shelnutt #
 
Don't use locate unless you've rebuilt the locate db. It won't have it.

Use the following command:
find / -name glob2

and make sure you have the caps set right. You might have to repeat it with Glob2

You can also use wildcards but you need to quote it with find, eg.
find / -name "*lob*"
will find anything with the string lob in it.

Oh and run it as root or you won't be able to read too many directories.
 
find / -name glob2
/usr/games/bin/glob2
*snip*

Turns out the games dir is locked from my user even viewing it. So I as root cd'ed to it. Went the the bin, and attempted to run the file glob2.
localhost bin # ./glob2
Settings::load("preferences.txt") : error, can't open file.
Segmentation fault
 
You need to be in the games group. That's a common problem.
 
You need to be in the games group. That's a common problem.

localhost shelnutt # gpasswd -a shelnutt games
Adding user shelnutt to group games
localhost shelnutt # exit
exit
shelnutt@localhost:~$ torcs
bash: torcs: command not found
shelnutt@localhost:~$ glob2
bash: glob2: command not found
shelnutt@localhost:~$ shelnutt
bash: shelnutt: command not found
shelnutt@localhost:~$ env-update
bash: env-update: command not found
shelnutt@localhost:~$ su
Password:
localhost shelnutt # env-update
>>> Regenerating /etc/ld.so.cache...
localhost shelnutt # exit
exit
shelnutt@localhost:~$ glob2
bash: glob2: command not found

I think something might be wrong with my permission. I'm also in the wheel group but I can't do sudo. When I use "sudo" I get a permission error and it says its emailing the root account.
 
I think something might be wrong with my permission. I'm also in the wheel group but I can't do sudo. When I use "sudo" I get a permission error and it says its emailing the root account.

After adding yourself to the games group you need to re-login

as far as sudo goes, have you edited /etc/sudoers?

Code:
# Uncomment to allow people in group wheel to run all commands
%wheel  ALL=(ALL)       ALL <-- this line is normally commented
 
You need to close the shell and open a new one for the new settings / path to take effect.

I don't know about the sudo thing because I don't use sudo at all (I just su).
 
for the sudo error, did you edit the /etc/sudoers?

edit: oops, just saw that Telexen was on top of that one.
 
Back