Giter Club home page Giter Club logo

Comments (9)

srsudar avatar srsudar commented on July 22, 2024

Interesting. It looks like maybe a couple things are going on. The first is that it seems to want to treat eg as a way to invoke easygit, which makes me think I may have stepped on another command that normally goes by eg, but first let's see if it's finding the symlink.

After running the ln command you showed above, try running: ls -l /usr/local/bin/eg.

It should show you that the command has been aliased, something like this for me when I do it for my go command:

$ ls -l /usr/local/bin/go
lrwxr-xr-x  1 sudars  admin  25 May 22  2014 /usr/local/bin/go@ -> ../Cellar/go/1.2.1/bin/go

Do you see something like that pointing to eg_exec.py? If not, then the creation of the symlink failed for some reason. You should try again but putting the link in the normal place for bin files on your machine. /usr/local/bin/ is a common place on OSX, but maybe /usr/bin or something is more common on Linux.

If you DO see the link pointing to the correct place, try invoking it directly to see if it works by running: /usr/local/bin/eg find. If that works, then it might be a path issue. In this case I would try moving /usr/local/bin/ earlier in your path and see if you can just run eg find then. If everything else is working, it sounds like maybe apt-get is in the habit of telling you immediately if you don't have a command that it thinks it is responsible for, even if you have it elsewhere on your path.

Let me know if any of that works.

from eg.

neovea avatar neovea commented on July 22, 2024

Thanks for answering.
I did ls -l /usr/local/bin/eg which returned lrwxrwxrwx 1 root root 16 avril 25 22:13 /usr/local/bin/eg -> eg/eg/eg_exec.py.
I removed this symlink and put one in /usr/bin. Still cannot make it works. However, it works by typing python eg_exec.py find.

from eg.

srsudar avatar srsudar commented on July 22, 2024

What is the error when you try running eg find? Is it the same one about easygit, or is it something else?

from eg.

neovea avatar neovea commented on July 22, 2024

The error remains the same.

from eg.

srsudar avatar srsudar commented on July 22, 2024

It sounds then like it works on your machine, we just have to get the links in the right place.

What is the output if you do /usr/bin/eg find? Does it work or is there an error?

What is the output of echo $PATH?

from eg.

neovea avatar neovea commented on July 22, 2024

The output says (translation) : 'too many symbolic link levels' (Trop de niveaux de liens symboliques). Echoing the $PATH returns /home/user/.linuxbrew/bin:/home/user/.rvm/gems/ruby-2.1.3/bin:/home/user/.rvm/gems/ruby-2.1.3@global/bin:/home/user/.rvm/rubies/ruby-2.1.3/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/home/user/.rvm/bin:/home/user/.rvm/bin

from eg.

srsudar avatar srsudar commented on July 22, 2024

Hmm, how mysterious. I would remove the link with rm /usr/bin/eg.

Then try remaking it with the absolute path to eg_exec.py, starting at the root of the file system, like:

ln -s /home/user/full/path/to/eg/eg_exec.py /usr/bin/eg

You can get the full path by cd'ing into the directory with eg_exec.py and typing pwd, which should give you the full path to that folder and will end with eg/. Then put /eg_exec.py onto the end of it and create the symlink.

After you've done that, what is the output of ls -l /usr/bin/eg?

Try running /usr/bin/eg find again after doing that and see if you still get the same error about the symbolic link levels.

from eg.

neovea avatar neovea commented on July 22, 2024

Ok absolute path solved the problem. Works like a charm now. Thank you !

from eg.

srsudar avatar srsudar commented on July 22, 2024

Great!

from eg.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.