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

Running on linux #4

Open
GoogleCodeExporter opened this issue Jan 9, 2016 · 1 comment
Open

Running on linux #4

GoogleCodeExporter opened this issue Jan 9, 2016 · 1 comment

Comments

@GoogleCodeExporter
Copy link

You'll have to change line 

1793 of blockChain.cpp from 

"sprintf(scratch,"%s\\blk%05d.dat", mRootDir, mBlockIndex );"
to
"sprintf(scratch,"%s/blk%05d.dat", mRootDir, mBlockIndex );"

Since linux uses forward slashes instead of backslashes for path names.  After 
that

make
./blockchain.out pathtodatfile

works fine

Original issue reported on code.google.com by arennh...@gmail.com on 4 Dec 2013 at 7:51

@GoogleCodeExporter
Copy link
Author

Note that Windows at least as far back as Windows 3.1 and 95 worked correctly 
with / as the path separator in file system calls from programs. It's only 
COMMAND.COM that wouldn't accept it in commands/batch files.

In fact I think forwards slash has worked ever since directories were 
introduced in DOS 2.0.

Original comment by bruce.ho...@gmail.com on 6 Jan 2014 at 7:28

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

No branches or pull requests

1 participant