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

/coffee: No such file or directory #11

Closed
kozzbc opened this issue Apr 14, 2012 · 12 comments
Closed

/coffee: No such file or directory #11

kozzbc opened this issue Apr 14, 2012 · 12 comments

Comments

@kozzbc
Copy link

kozzbc commented Apr 14, 2012

Ok I've been trying to get this installed for 3 days now, I don't know if I'm using the correct version of node and npm or if I'm missing some modules. I've searched high and low but I cannot find the answers. I'm trying to get this installed on ubuntu 12.04 beta2, maybe thats the problem?

Here's the error I'm getting, any guidance is greatly appreciated

groovebasin@0.0.5 install /home/devin/node_modules/groovebasin
make

mkdir -p lib
node_modules/coffee-script/bin/coffee -p -c src/shared/mpd.coffee >lib/mpd.js.tmp
bash: node_modules/coffee-script/bin/coffee: No such file or directory
make: *** [lib/mpd.js] Error 127

npm ERR! groovebasin@0.0.5 install: make
npm ERR! sh "-c" "make" failed with 2
npm ERR!
npm ERR! Failed at the groovebasin@0.0.5 install script.
npm ERR! This is most likely a problem with the groovebasin package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! make
npm ERR! You can get their info via:
npm ERR! npm owner ls groovebasin
npm ERR! There is likely additional logging output above.
npm ERR!
npm ERR! System Linux 3.2.0-23-generic-pae
npm ERR! command "node" "/usr/bin/npm" "install" "groovebasin"
npm ERR! cwd /home/devin
npm ERR! node -v v0.6.15
npm ERR! npm -v 1.1.16
npm ERR! code ELIFECYCLE
npm ERR! message groovebasin@0.0.5 install: make
npm ERR! message sh "-c" "make" failed with 2
npm ERR! errno {}
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /home/devin/npm-debug.log
npm not ok

@andrewrk
Copy link
Owner

I'm sorry you're having so much trouble. I'll see about getting a virtual ubuntu 12.04 beta2 going today to see if I can duplicate the issue.

But anyway what's happening is it's looking for the coffee binary at ./node_modules/coffee-script/bin and is unable to find it. So something is different than I expected when writing that Makefile. One thing you can try is installing from source instead of npm - checkout the master branch of groovebasin, and do this:

sudo npm link
make
npm -g start groovebasin

@kozzbc
Copy link
Author

kozzbc commented Apr 14, 2012

I appreciate the fast reply,

So now I have cloned the git, and it linked to npm and the make both worked without error, but when I try to start GB I have a new error refering to server.js, I guess it might be missing from somewhere, Heres the last part of the error

devin@mainserver:~$ npm -g start groovebasin

groovebasin@0.0.5 start /usr/lib/node_modules/groovebasin
node server.js

The "sys" module is now called "util". It should have a similar interface.
info - socket.io started
info - Serving at http://localhost:16242/
info - server running as user 1000
warn - bind_to_address does not have a unix socket enabled in /etc/mpd.conf. Uploading disabled.
warn - bind_to_address does not have a definition that is 'localhost' in /etc/mpd.conf. Uploading disabled.
warn - httpd audio_output not enabled in /etc/mpd.conf. Streaming disabled.
warn - recommended to turn auto_update on in /etc/mpd.conf
warn - recommended to turn gapless_mp3_playback on in /etc/mpd.conf
warn - recommended to turn volume_normalization on in /etc/mpd.conf
warn - recommended to set max_command_list_size to >= 16384 in /etc/mpd.conf
info - lastfm is enabled.
info - dynamicmode is enabled.
warn - upload is disabled.
info - download is enabled.
info - chat is enabled.
warn - stream is disabled.
info - server to mpd connect
error - [5@0] {} unknown command "subscribe"

/home/devin/groovebasin/lib/plugins/dynamicmode.js:112
new_files.push(item.track.file);
^
TypeError: Cannot read property 'file' of undefined
at DynamicMode. (/home/devin/groovebasin/lib/plugins/dynamicmode.js:112:36)
at /home/devin/groovebasin/lib/plugins/dynamicmode.js:4:61
at DirectMpd. (/home/devin/groovebasin/lib/mpd.js:196:31)
at DirectMpd.raiseEvent (/home/devin/groovebasin/lib/mpd.js:5:61)
at Object.cb (/home/devin/groovebasin/lib/mpd.js:725:17)
at DirectMpd. (/home/devin/groovebasin/lib/mpd.js:208:24)
at DirectMpd.handleMessage (/home/devin/groovebasin/lib/mpd.js:5:61)
at DirectMpd. (/home/devin/groovebasin/lib/mpd.js:236:16)
at Socket. (/home/devin/groovebasin/lib/mpd.js:5:61)
at Socket.emit (events.js:67:17)

npm ERR! groovebasin@0.0.5 start: node server.js
npm ERR! sh "-c" "node server.js" failed with 1
npm ERR!
npm ERR! Failed at the groovebasin@0.0.5 start script.
npm ERR! This is most likely a problem with the groovebasin package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node server.js
npm ERR! You can get their info via:
npm ERR! npm owner ls groovebasin
npm ERR! There is likely additional logging output above.
npm ERR!
npm ERR! System Linux 3.2.0-23-generic-pae
npm ERR! command "node" "/usr/bin/npm" "-g" "start" "groovebasin"
npm ERR! cwd /home/devin
npm ERR! node -v v0.6.15
npm ERR! npm -v 1.1.16
npm ERR! code ELIFECYCLE
npm ERR! message groovebasin@0.0.5 start: node server.js
npm ERR! message sh "-c" "node server.js" failed with 1
npm ERR! errno {}

npm ERR! Error: EACCES, open 'npm-debug.log'
npm ERR!
npm ERR! Please try running this command again as root/Administrator.
npm ERR!
npm ERR! System Linux 3.2.0-23-generic-pae
npm ERR! command "node" "/usr/bin/npm" "-g" "start" "groovebasin"
npm ERR! cwd /home/devin
npm ERR! node -v v0.6.15
npm ERR! npm -v 1.1.16
npm ERR! path npm-debug.log
npm ERR! code EACCES
npm ERR! message EACCES, open 'npm-debug.log'
npm ERR! errno {}
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /home/devin/npm-debug.log
npm not ok

@andrewrk
Copy link
Owner

All those warnings are configuration options in /etc/mpd.conf that you should change.

But the kicker is the error - error - [5@0] {} unknown command "subscribe"

"subscribe" command is a newish feature of mpd and does not exist in the version in ubuntu's package manager. You'll have to compile mpd from source to get the latest features.

To compile mpd from source will go something like this:

git clone git://github.com/superjoe30/mpd.git
cd mpd
sudo apt-get build-dep mpd
sudo apt-get install autoconf build-essential
autoreconf .
(might be some instructions you need to follow here)
./configure
make
sudo make install

@kozzbc
Copy link
Author

kozzbc commented Apr 14, 2012

Ok great, thanks for the heads up on that, I'll try it out when I get back home and let you know how it works out, sounds prommising :)

@kozzbc
Copy link
Author

kozzbc commented Apr 16, 2012

Ok I finally had a chance to give this another try today, I was missing libtool, then I tried the steps above to compile from source again, but it was throwing errors when I ran the autoreconf . command, I did a little searching and tried with autoreconf -isfv , that worked and so did the ./configure make and sudo make install. So now when I start grovebasin with npm -g start groovebasin, I does start with a few warnings, and I can now load it in my browsers on the other pc's in my network. But I cannot start the mpd and the /etc/mpd.conf file is missing, Did it install correctly? do I need to manually launch it form my /home/user/mpd directory?

@andrewrk
Copy link
Owner

when you install mpd from source, you run it by running the "mpd" binary and optionally passing as a parameter the path to the conf file. Since you compiled mpd from source, you have to create the conf file - you'll want to copy it from /doc/mpdconf.example to where you want. I like to put it at /etc/mpd.conf, and I think that it will automatically find it there if you don't pass a parameter.

@andrewrk
Copy link
Owner

be sure to check out the warnings - they should clue you in as to what conf options to set in mpd.conf.

@kozzbc
Copy link
Author

kozzbc commented Apr 16, 2012

Great I have a copy of my last mpd.conf that I just dropped into /etc/ , But I'm not exactly sure where to find the mpd binary to launch it. I'm doing everything on a headless server distro over putty from my win machine so I dont have the luxury of a full desktop hehe

@andrewrk
Copy link
Owner

If you did sudo make install, it should be in /usr/local/bin.

@kozzbc
Copy link
Author

kozzbc commented Apr 16, 2012

Duhh LOL nevermind, I just figured it out, simply typing mpd in terminal starts it, I should of known better

Thanks a lot for all the help and keep up all the great work with this great project

@andrewrk
Copy link
Owner

Thank you, I hope you enjoy using it. Feedback welcome.

@andrewrk
Copy link
Owner

This works for me on Ubuntu 12.04.

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

2 participants