Skip to content

luarocks bad interpreter: no such file or directory #19

Description

@apeterswu

I was trying to use DeepMind's Atari-Deep-Q-Learner project. Since it requires some other dependencies, so after I install them, I copied install dependencies into my torch install directory with
"cp -r ~/codes/torch/DeepMind-Atari-Deep-Q-Learner-master/torch/* ~/torch/install/".
After this, Deep-Q-Learning was fine to run, but when I tried to use command "luarocks", I got error like this:
"bash: /root/torch/install/bin/luarocks: /root/codes/DeepMind-Atari-Deep-Q-Learner-master/torch/bin/luajit: bad interpreter: No such file or directory."
As you can see, the first path is right, but I have no idea why the second path comes out, the path should be "/root/codes/torch/DeepMind-Atari-Deep-Q-Learner-master/torch/bin/luajit" rather than missing "/torch/" directory. But I don't know how to fix it. I don't know where to configure the "luarocks" path, I can't find it in ".bashrc", "/etc/profile" or other bash files. Could some one help? Thanks. I just wanna to remove the second path or fix it to the right path.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions