Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Having problem running on Linux (Ubuntu 12.04 Precise) #31

Closed
recognosco opened this issue May 7, 2015 · 1 comment
Closed

Having problem running on Linux (Ubuntu 12.04 Precise) #31

recognosco opened this issue May 7, 2015 · 1 comment

Comments

@recognosco
Copy link

I checked out the repo to: /usr/local/src/PathPicker and created the symlink like this:
root@precisebox:/usr/local/bin# ln -s /usr/local/src/PathPicker/fpp fpp

then when i try running fpp, i see this message:

hmuser@precisebox:~$ which fpp
/usr/local/bin/fpp
hmuser@precisebox:~$ fpp --help
/usr/local/bin/fpp: line 18: cd: /usr/local/bin//usr/local/src/PathPicker: No such file or directory
python2: can't open file '/src/printHelp.py': [Errno 2] No such file or directory

more info:

hmuser@precisebox:~$ readlink /usr/local/bin/fpp
/usr/local/src/PathPicker/fpp
hmuser@precisebox:~$ ls -al /usr/local/bin/fpp
lrwxrwxrwx 1 root root 29 May  7 16:45 /usr/local/bin/fpp -> /usr/local/src/PathPicker/fpp
hmuser@precisebox:~$ ls -al /usr/local/src/PathPicker/
total 60
drwxrwxr-x 5 hmuser hmuser 4096 May  7 16:37 .
drwxr-xr-x 3 root   root   4096 May  7 16:25 ..
drwxrwxr-x 2 hmuser hmuser 4096 May  7 16:24 assets
-rw-rw-r-- 1 hmuser hmuser 1918 May  7 16:24 CONTRIBUTING.md
-rwxrwxr-x 1 hmuser hmuser 1454 May  7 16:24 fpp
-rw-rw-r-- 1 hmuser hmuser  561 May  7 16:24 fpp.rb
drwxrwxr-x 8 hmuser hmuser 4096 May  7 16:24 .git
-rw-rw-r-- 1 hmuser hmuser   89 May  7 16:24 .gitignore
-rw-rw-r-- 1 hmuser hmuser 4502 May  7 16:24 index.html
-rw-rw-r-- 1 hmuser hmuser 1531 May  7 16:24 LICENSE
-rwxrwxr-x 1 hmuser hmuser  347 May  7 16:24 makeDist.sh
-rw-rw-r-- 1 hmuser hmuser 1981 May  7 16:24 PATENTS
-rw-rw-r-- 1 hmuser hmuser 3332 May  7 16:24 README.md
drwxrwxr-x 2 hmuser hmuser 4096 May  7 16:42 src

good thing is, the issue is fixed by changing the commented out line to the line after:

while [ -h "$WHEREAMI" ]; do
  # WHEREAMI=$(dirname "$WHEREAMI")"/"$(readlink "$WHEREAMI")
  WHEREAMI=$(readlink "$WHEREAMI")
done

hopefully this helps.

@recognosco
Copy link
Author

duplicate and already has been patched.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant