Skip to content
This repository has been archived by the owner on Jul 9, 2024. It is now read-only.

Make install error #7

Closed
deybhayden opened this issue Jul 12, 2011 · 14 comments
Closed

Make install error #7

deybhayden opened this issue Jul 12, 2011 · 14 comments

Comments

@deybhayden
Copy link

Trying to make install doctorjs - I get the following error:

[example@example doctorjs]$ sudo make install
install -d /usr/local/bin
install bin/jsctags.js /usr/local/bin/jsctags
install -d /usr/local/lib/jsctags
install lib/jsctags/getopt.js lib/jsctags/log.js lib/jsctags/paperboy.js lib/jsctags/traits.js lib/jsctags/underscore.js /usr/local/lib/jsctags
install -d /usr/local/lib/jsctags/ctags
install lib/jsctags/ctags/index.js lib/jsctags/ctags/interp.js lib/jsctags/ctags/nativefn.js lib/jsctags/ctags/reader.js lib/jsctags/ctags/writer.js /usr/local/lib/jsctags/ctags
install -d /usr/local/lib/jsctags/narcissus
install lib/jsctags/narcissus/index.js lib/jsctags/narcissus/jscfa.js lib/jsctags/narcissus/jsdefs.js lib/jsctags/narcissus/jslex.js lib/jsctags/narcissus/jsparse.js /usr/local/lib/jsctags/narcissus
install: cannot stat `lib/jsctags/narcissus/index.js': No such file or directory
install: cannot stat `lib/jsctags/narcissus/jscfa.js': No such file or directory
install: cannot stat `lib/jsctags/narcissus/jsdefs.js': No such file or directory
install: cannot stat `lib/jsctags/narcissus/jslex.js': No such file or directory
install: cannot stat `lib/jsctags/narcissus/jsparse.js': No such file or directory
make: *** [install] Error 1

Any ideas?

@rrmckinley
Copy link

Narcissus in doctorjs is now synced with the upstream repo. The files have been moved to the root of the project. They should probably be installed in /usr/local/lib/narcissus during install. It should not be too hard to patch the make file if you have a look.

@deybhayden
Copy link
Author

Erm, the narcissus directory in the doctorjs is empty. I suppose it was supposed to be a subrepo of narcissus. How would I go about fixing this issue? Sorry, it's not apparent to me. D:

@rrmckinley
Copy link

Yes, apologies. From within the docotorjs directory run the following command:

git submodule update --init --recursive

I'm not sure if a submodule update always moves to the latest version of that repo. If narcissus becomes incompatible, use git checkout in the narcissus directory to move narcissus back to the time or version in the doctorjs commit.

Sorry for the trouble, but this updated narcissus is a good thing. It became very stale before and this arrangement removes barriers to stay up-to-date.

@deybhayden
Copy link
Author

diff --git a/Makefile b/Makefile
index bd43365..97bb089 100644
--- a/Makefile
+++ b/Makefile
@@ -7,7 +7,7 @@ LIB_SRC=$(addprefix lib/jsctags/,getopt.js log.js paperboy.js traits.js \
        underscore.js)
 LIB_CTAGS_SRC=$(addprefix lib/jsctags/ctags/,index.js interp.js nativefn.js \
        reader.js writer.js)
-LIB_NARCISSUS_SRC=$(addprefix lib/jsctags/narcissus/,index.js jscfa.js \
+LIB_NARCISSUS_SRC=$(addprefix narcissus/lib/,index.js jscfa.js \
     jsdefs.js jslex.js jsparse.js)

 install:

My diff on my change to the Make file for the root Narcissus. I get further in the install, but still missing 2 files:


install -d /usr/local/bin
install bin/jsctags.js /usr/local/bin/jsctags
install -d /usr/local/lib/jsctags
install lib/jsctags/getopt.js lib/jsctags/log.js lib/jsctags/paperboy.js lib/jsctags/traits.js lib/jsctags/underscore.js /usr/local/lib/jsctags
install -d /usr/local/lib/jsctags/ctags
install lib/jsctags/ctags/index.js lib/jsctags/ctags/interp.js lib/jsctags/ctags/nativefn.js lib/jsctags/ctags/reader.js lib/jsctags/ctags/writer.js /usr/local/lib/jsctags/ctags
install -d /usr/local/lib/jsctags/narcissus
install narcissus/lib/index.js narcissus/lib/jscfa.js narcissus/lib/jsdefs.js narcissus/lib/jslex.js narcissus/lib/jsparse.js /usr/local/lib/jsctags/narcissus
install: cannot stat `narcissus/lib/index.js': No such file or directory
install: cannot stat `narcissus/lib/jscfa.js': No such file or directory
make: *** [install] Error 1

Is this narcissus being incompatible? How would I do the git checkout properly on the narcissus directory? Sorry to be a nuisance.

@dimvar
Copy link

dimvar commented Jul 12, 2011

jscfa.js is not a part of narcissus, it just happened to be in the narcissus directory in the past. It now lives in the lib/cfa2 directory of doctorjs.

@deybhayden
Copy link
Author

Well, I've messed with the Make file a lot, installed it, got an error about something missing... I think for sanity's sake, I'm going to punt on this for now. Thanks.

@rrmckinley
Copy link

Please, use git checkout in the doctorjs directory to move your clone to several days ago. Then you can install and use the version before this narcissus version. Don't give up, you have options. I am sorry for the inconvenience, but please remember that when you are using git on a project that does not have release branches you are always using the bleeding edge. Use git checkout to move back to a specific revision. You can use the history feature on github to find a good point in time (maybe here: f63c1e0).

Sorry for the inconvenience, but a little leverage from git and you can replace that sinking feeling of this-project-is-broken with just having it work. When someone gets time to patch the problem then you can move git back to the master branch.

@deybhayden
Copy link
Author

Perfect! Sorry I got a bit short, I understand bleeding edge - I was just getting frustrated because I didn't know how to fix the issues. Works great now.

@rrmckinley
Copy link

Thanks for your patience! More people will want to use doctorjs as a general ctags generator and I am sure the project will respond with some proper release management soon.

@dimvar
Copy link

dimvar commented Jul 12, 2011

Until we fix the Makefile, you can still use the latest doctorjs if you add the bin subdirectory to your PATH. (e.g., if you 've downloaded the source in your home directory, you would add /home/beardedprojamz/doctorjs/bin/ to your PATH.) Then you can get tags for a file foo.js by doing: jsctags.js foo.js

@dimvar
Copy link

dimvar commented Jul 22, 2011

It's a doctorjs problem, the Makefile is broken right now. The paths need changing. Hopefully we'll fix that soon. Until then, you can just call bin/jstags.js directly without installing.

@ggerrietts
Copy link

Right, I was trying that but did in fact have an environment problem. It's (sort of) sorted now. Thanks!

@oryband
Copy link

oryband commented Jul 30, 2011

FYI - Opened issues #10 & #11 requesting to fix the Makefile and update README.md.

@nuba
Copy link

nuba commented Sep 1, 2011

Just starting with node and npm here, and found this ticket only after pulling a lot of hair, thinking I was messing it up :( please, use git's tags feature to point it to a sane point in the timeline, and drop a note about it in the readme. That aside, thanks for doctorjs!

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

No branches or pull requests

6 participants