Ask Your Question
0

'which' and JRE problems [closed]

asked 2016-03-13 03:36:49 -0500

I've recently (< than a week) started finding a few problems in my Fedora23:

  1. The 'which' command is gone;
  2. Smartgit (a graphical git client) can't detect my JRE anymore;
  3. I've used to have powerline working on my Konsole and now it's gone all the sudden

I wonder if a recently update broke all of these together or if some other user screwed something in here. Any other people experiencing this kind of thing?

BTW I've ran sudo alternatives to see about my JRE and it's set correctly at /usr/java/jre1.8.0_66/bin/java

TIA,

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by galvao
close date 2017-01-05 09:47:05.827296

Comments

1

Looks like your ~/.bashrc is broken when everything seems to be OK for another user. You can copy a vanilla .bashrc from /etc/skel/.bashrc or compare yours with that one. Before copying you might want to make a backup of that file.

thomaswood gravatar imagethomaswood ( 2016-03-13 05:39:19 -0500 )edit

That's not the case:

[zaphod@magrathea UrbanTerror42]$ diff /etc/skel/.bashrc ~/.bashrc

11a12,18

if [ -f which powerline-daemon ]; then powerline-daemon -q POWERLINE_BASH_CONTINUATION=1 POWERLINE_BASH_SELECT=1 . /usr/share/powerline/bash/powerline.sh fi Only difference is the powrline block, which always worked perfectly. It still doesn't explain which or jre.

galvao gravatar imagegalvao ( 2016-03-13 06:37:25 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2016-03-13 09:49:27 -0500

So, the whole problem (everything) was related to the fact that which was missing. So after a dnf reinstall which the problem was solved. A piece of advice: I've just remembered that I had a failed installation of Netbeans prior to this happening so, this MIGHT have been the cause of the whole thing.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2016-03-13 03:36:49 -0500

Seen: 138 times

Last updated: Mar 13 '16