alabid / flylatex

FlyLatex: A Realtime Collaborative Environment (with a concurrent editor) in node-js.
766 stars 85 forks source link

Insufficient README.md #32

Closed blueblob closed 10 years ago

blueblob commented 11 years ago

The README.md file doesn't contain enough information to get the webapp running. First of all, on Archlinux I have mongodb installed through a package along with nodejs (which the AUR package installs npm by default). I still had to run: npm install mongodb npm install hooks as these are not installed as dependencies with npm install -d. There doesn't seem to be any info on what compiler this uses in the readme or how to set it up. Immediately after setting this up, adding a latex document that compiles with pdflatex on my machine and has no packages required as a dependency, I get an error compiling: Error while trying to read logs.

grossjonas commented 11 years ago

Could you be a bit more verbose by adding some more information? Does it output which logs? Are there any further informations available?

alabid commented 11 years ago

@blueblob "Error while trying to read logs" error is probably a permissions issue with temporary directories created. In the process of compiling a latex document to pdf, a ".log" file is produced. There's a "View Logs" button in the document page that can be used to view the ".log" file. Use the "error-logs" branch here: https://github.com/alabid/flylatex/tree/error-logs to see the error on the console. And then post your console output here.

gagarinZ commented 10 years ago

I habve the same problem (running as root). The console log says:

sudo nodejs app.js info - socket.io started Express server listening on port 3001 in development mode { [Error: ENOENT, open '/tmp/pdfcreator11385-5184-esgurg/52459389584eb60614000001.log'] errno: 34, code: 'ENOENT', path: '/tmp/pdfcreator11385-5184-esgurg/52459389584eb60614000001.log' }

My config.js looks like this: var config = { port: 3001 , pdfs: { path: "/root/flylatex/flylatexcache/" // path: "/tmp" } , db : { url : "mongodb://localhost/flylatex" // for example: mongodb://localhost/flydb3" }, docs: { MAX_NUM_PER_USER : 20 }, includes: { path : "/root/flylatex/flylatexcache/" } };

module.exports = config;

alabid commented 10 years ago

I think I found the problem. Do you have the program "pdflatex" installed? The README does say it's required, I believe.

blueblob commented 10 years ago

Apologies, I had forgotten about this. It appears to have been a problem on my system. I did have pdflatex installed but it hadn't been working. Also, since the initial issue was filed you guys must have updated the install dependencies, because the install worked fine as well. Thanks!