Fresh install of Ubuntu 12.04: /usr/local/bin/fish: No such file or directory #179

Closed
pbackx opened this Issue Jun 25, 2012 · 10 comments

Comments

Projects
None yet
6 participants

pbackx commented Jun 25, 2012

This is on a newly installed Ubuntu 12.04, I only ran a sofware update.

I install fish:
sudo dpkg -i fishfish_0.9.1_i386.deb

Now when I try to launch fish, I get this error:
bash: /usr/local/bin/fish: No such file or directory

which fish
/usr/local/bin/fish

ls -al /usr/local/bin/fish
-rwxr-xr-x 1 root root 834388 Jun 5 10:33 /usr/local/bin/fish

I have a feeling there are missing dependencies (though no error while installing), I just have absolutely no idea which ones. How can I debug this problem further?

Thanks,
Peter

Sean-Der commented Jul 3, 2012

Hey Peter,

Have you had any luck with this? Try running just 'fish' or maybe './usr/local/bin/fish'

I really don't have any clue what is going on here, but I will try to help you out and get this closed.

pbackx commented Jul 8, 2012

Hi Sean,

A little late reply, but thank you very much for helping me out.
I tried both of these and always that same error message:

bash: /usr/local/bin/fish: No such file or directory

And yes, the "fish" file really is there.

I'm going to go over the package differences between a working system and one with issues. Somehow, I have a feeling the solution must be in there.

This is a system where everything is working ok:
https://gist.github.com/3070883

This is one with the error:
https://gist.github.com/3070890

Both systems are used for Node.JS development, so I hope the differences are minimal.

I'm going to compare these and see if adding, removing or updating packages helps.

I am guessing you are missing a symlink? Try running ldd and make sure that all its links are fulfilled.

I really think this is it, once you figure out what is missing we will be able to install the package for you and then we need to add it the the dependencies of the deb we are distributing

pbackx commented Jul 16, 2012

Ok, I figured it out. The error was completely my own: I tried to install the 32 bit package on a 64 bit OS.
Just for the record the output on the 64 system (where it obviously isn't working):

peter@peter-VirtualBox:~$ ldd /usr/local/bin/fish
    not a dynamic executable
peter@peter-VirtualBox:~$ ls -al /usr/local/bin/fish
-rwxr-xr-x 1 root root 834388 Jun  5 10:33 /usr/local/bin/fish
peter@peter-VirtualBox:~$ uname -a
Linux peter-VirtualBox 3.2.0-25-generic #40-Ubuntu SMP Wed May 23 20:30:51 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux

The one where it is working:

peter@peter-VirtualBox ~> uname -a
Linux peter-VirtualBox 3.2.0-25-generic #40-Ubuntu SMP Wed May 23 20:33:05 UTC 2012 i686 i686 i386 GNU/Linux

Is there a 64-bit package available?

It doesn't look like it :(

You could try building it from source :D, also in build_tools/ there is a script to automate making a deb. I know nothing about it, but it should work?

metamatt commented Apr 2, 2013

This is pretty old now and probably out of date / irrelevant, but for the record, I see you were trying to install fishfish_0.9.1_i386.deb directly with dpkg instead of going through apt -- I don't know a whole lot about fish versioning prior to recently, but Ubuntu 12.04 already packages a version of fish, ostensibly newer than that (1.23, see http://packages.ubuntu.com/precise/fish).

Meanwhile, the nightly link in the toplevel fish readme here on github points to http://download.opensuse.org/repositories/home:/siteshwar/Ubuntu_12.04/, which currently has both amd64 and i386 packages for fish_2.0.0.

So this can probably be closed?

pbackx commented Apr 2, 2013

Yes, it's been a while. Thanks for pointing out the Ubuntu packages, I think those are fairly recent (relatively speaking)

@pbackx pbackx closed this Apr 2, 2013

Member

zanchey commented Apr 2, 2013

The Ubuntu packages are for the original fish (i.e. before the current work done). "fishfish" was originally released as its own separate package, which was a beta versioned at 0.9.1.

At the risk of sounding like a broken record, there is a PPA at https://launchpad.net/~zanchey/+archive/fishfish-snapshot. You can also use the OpenSUSE build service links in @metamatt's comment, although apt-get will not automatically upgrade these packages.

metamatt commented Apr 2, 2013

Thanks for the clarification. I had no idea about the separate version history between old-fish and fishfish.

Member

siteshwar commented Apr 4, 2013

@zanchey I have started updating version numbers of packages for nightly builds, so you can now update it with apt-get.

BTW I had to do sudo zypper refresh on OpenSUSE to get latest version of fish package listed in package manager.

@faho faho removed this from the fish-future milestone Feb 8, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment