Comments (7)
I don't know what kind of machine you're running this on, but Dash only runs on Macs. OS X ships with both libxml2 and bundler already installed. I added a note about needing to run bundle install
, though, it's a good point.
from dash-rust.
Macbook pro 15.4" Early 2011, Mavericks 10.9.2, as noted. Most certainly a standard Mac, in other words.
from dash-rust.
Whoops, I missed that. Thanks for letting me know, and that's reeeeeeeally weird. The version of Nokogiri used here even includes the source to libxml, and will build it if it is missing. :(
If this command did not work:
gem install nokogiri -- --with-xml2-include=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/include/libxml2
Then you probably don't have the required developer tools installed. Building the docset yourself requires not only that you have XCode and the command-line developer tools installed, it also requires that you be able to compile all of Rust from the source code, to generate the docs that will be used in the docset.
from dash-rust.
I have XCode 5.1.1 (5B1008) installed, and I have built Rust from source many times (I build/test it myself from the master branch), so I should have those, too! (I have run xcode-select --install
prior.)
$ gem install nokogiri -- --with-xml2-include=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/include/libxml2
ERROR: While executing gem ... (Gem::FilePermissionError)
You don't have write permissions for the /Library/Ruby/Gems/2.0.0 directory.
With sudo in front, it fails during configure due to
checking for xmlParseDoc() in -lxml2... no
Full command output
mkmf.log doesn't appear to show much useful information, except that it does pass "-L/Library/Ruby/Gems/2.0.0/gems/nokogiri-1.6.1/ports/x86_64-apple-darwin13.1.0/libxml2/2.8.0/lib -I/Library/Ruby/Gems/2.0.0/gems/nokogiri-1.6.1/ports/x86_64-apple-darwin13.1.0/libxml2/2.8.0/include/libxml2" and "-lxml2" to clang while building the test that fails.
The include path supplied (in the gem install command) does exist and work, though; there are 47 header files in .../libxml2/libxml in the path. This seems fairly strange; it indeed specifies that it runs configure/make/install on libxml2 during the gem install process, but it still fails to find libxml2.
The official instructions using homebrew also don't work (after adjusting for version numbers), with or without custom libiconv; same error (though with the custom libiconv, that's what it can't find, instead).
BTW, sorry for posting all of this here.
from dash-rust.
Ugh. That's extremely strange. I'm out of ideas, now, sorry. :( Maybe they can help you over at https://github.com/sparklemotion/nokogiri/issues ?
from dash-rust.
Well, I finally solved this part, at least! In case someone has the same issue:
I found this rather old guide. I used solution 1, with a small change:
ARCHFLAGS="-arch x86_64" gem install nokogiri
... as root (since root owns /Library/Ruby/Gems), which finally worked, just like that.
I did not try i386 as suggested, since I figured that is likely outdated by now; I use 64-bit Rust, 64-bit compilers and so likely 64-bit libxml2 and nokogiri, too.
BTW (not sure if I should open a separate issue): if you enter the path to the full Rust source instead of e.g. rust/doc, dash-rust will copy the entire source tree, and then fail to build the docs later. It would probably be good to check the path before it starts working. With the proper doc path, though, it works great now!
from dash-rust.
Glad to hear it! Iād be happy to accept a pull request that checks to see if the directory looks like a docs folder before it copies it.
On May 1, 2014, at 11:24 AM, Thomas Backman [email protected] wrote:
Well, I finally solved this part, at least! In case someone has the same issue:
I found this rather old guide. I used solution 1, with a small change:ARCHFLAGS="-arch x86_64" gem install nokogiri
... as root (since root owns /Library/Ruby/Gems), which finally worked, just like that.
I did not try i386 as suggested, since I figured that is likely outdated by now; I use 64-bit Rust, 64-bit compilers and so likely 64-bit libxml2 and nokogiri, too.BTW (not sure if I should open a separate issue): if you enter the path to the full Rust source instead of e.g. rust/doc, dash-rust will copy the entire source tree, and then fail to build the docs later. It would probably be good to check the path before it starts working. With the proper doc path, though, it works great now!
ā
Reply to this email directly or view it on GitHub.
from dash-rust.
Related Issues (5)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
š Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ššš
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ā¤ļø Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dash-rust.