-
Notifications
You must be signed in to change notification settings - Fork 111
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
Windows 10 run failure caused by install problem (iconv is missing) #38
Comments
Thanks. Should be fixed now. |
Thanks, but that doesn't work though it gives different errors. I first tried patching the Gemfile with your changes but an attempted install failed. The relevant lines in the install attempt log seem to be:
I tried some other things and then attempted the log suggestion
but that file doesn't exist (maybe intermediate things I did cleared it). The log also suggests:
When I tried that (and it failed) something strange happened. Windows security popped up: This had never happened before, and it didn't happen the 2nd time I tried Here is the simple log of my current failure:
|
If you google
you will find numerous hits, describing exactly your problem. The solutions seem to differ, but this is clearly a Windows Ruby problem. If you figure out which solution works for you, perhaps you might consider adding to the Instiki documentation. |
Did Instiki ever work under Windows or was that just wishful thinking? In particular, if I manage to track down the Anyway without knowing ruby I'm willing to try to get Instiki to install. What there depends on If I try something like ruby |
Yes. And, as far as I am aware, there are still quite a number of people running it under Windows.
I have no idea.
So why are you asking about Nokogiri? |
A google turned up some stuff about Nokogiri and iconv problems. But mainly I was using it as an example for questioning how to patch a ruby install from the command line if that is at all possible. Anyway, I got
from info at StackOverflow: Error while installing iconv on windows by ruby2.0.0. I downloaded Now, how do I tell the Instiki install to use this
A comment in that SO thread says:
So I tried
but that didn't magically fix things. |
|
progress somewhat, instiki now installs but
(do I need to do a for
for
The
|
Sigh. With a fresh install, you need to specify the path
Subsequent invocation (with the same installation) should remember the path. As to running instiki (now that it is ostensibly correctly installed), I would try
which runs the server in the foreground (so you can see any error messages) before going with
which runs it in the background, with error messages sent to the logfile. From the transcript you posted, it appears that
to
even though that should have been unnecessary. |
So ... Is there a resolution to this issue? Something along the lines of
Something else? |
In the absence of further input, I'm gonna assume that did the trick. Closing. |
No. It didn't fix things. Can you re-open this. I've got a lot of notes on things I've tried and maybe where the problem is but no definitive conclusion. I'll try to summarize them in another post within a few days. (I thought taking some time away would give new insights but it didn' (does this need a new thread? It seems I had issues posting logs as this thread got longer) |
OK. Reopening.
It would be a lot less confusing to keep the whole discussion under one issue (unless it turns out that there are several distinct issues at play). |
Things have progressed. The
'ruby instiki' log:
The current script I'm using (with a fresh copy of
The |
Sounds like a problem with the installation of the
(and in the shared library that gets compiled from that source). This was reported as Issue 24 (though the reporter did not mention that he was on Windows). Apparently, the Could you try the following?
|
I patched By preceding
it looks like it successfully compiles. I'm going to have to postpone further testing till tomorrow morning. |
The upper casing of that single
|
Obviously, it didn't, because the error message still complains about the lower-case I think you need to copy the new |
I verified that the two files were different and then did
|
Sorry about this. I guess I need to know more about the packaging of gem extensions. How about the copy of (N.B.: we're trying to verify that the "fix" works on Windows before I release a new version of the gem. With the new version, all this will be automatic.) |
It got past the "swig_runtime_data" problem after I did:
Now more fully:
|
I'm a little confused. I thought the logs you posted earlier indicated that you has successfully installed the There's a lot of discussion on the web about installing the The solutions seem to vary from downgrading Ruby (from 2.3 to 2.0) to installing the sqlite3 shared libraries manually, before attempting to install the gem. Not sure which (if any) will work for you. In any case, I think I am going to release a new version of the |
That should fix the 2nd of your 3 issues. |
I just tried
makes the
|
Crap! I missed a couple of pointer-type conversions which make compilation fail on 32bit systems. Very unhappy to say that I had to release |
|
Well, that's better. One of the suggestions vis-a-vis |
I may have gotten past the
I tried downgrading to both The
but that didn't work. Ruby couldn't find the gem 'sqlite3 x86-mingw32' there. Following instructions from Github: sparklemotion/sqlite3-ruby/issues/185 (LoadError on Windows x64, Ruby 2.3) I downloaded sqlite3 sources, did a
Then I patched
to
(that was the only way I found to get Partial log:
|
Wow, this is getting ridiculous. Again, it seems that Anyway, this time, the Since you're never going to use it, just delete that line from the
I'd like (at some point) to understand why |
While I'm thinking about it why do my installs use The last lines of
I can't figure out where this preference is set or if it is derived some way. |
That's the version of Bundler bundled with Instiki. (The reason for bundling it is that Instiki is supposed to be installable without root privileges and if the I don't think there's anything in 1.12.x which would ameliorate any of your issues. (Though I will be updating to 1.12.x when Ruby 2.4 comes out.) |
Your patch to remove Prior to this I had problems re-doing the So I tried running my script in the bash shell but got the same results. Partial log:
There has been a bunch of activity at Github: sparklemotion/nokogiri to fix problems like this. The latest nokogiri gem is I patched the Partial log (just after patching Gemfile):
. |
Yay!!!. My local After browsing to http://localhost:2500/ and doing the setup I copied https://golem.ph.utexas.edu/wiki/instiki/revision/Sandbox/414 (where I put some SVG examples) to my |
OK. So maybe a summary is in order? Having fixed the
In some cases, an astute choice of gem version would suffice to fix the problem. In others, it sounds like a more complicated installation procedure is required. For Nokogiri, it seems that we need
For Anyway, a summary of the steps to install |
Much of the patching to get things working I guess should be manageable by making a new branch, say I've been sometimes using local clones of those (to avoid download time) and while my
doing the following before the
This means (I guess) I can do the branching locally and the
even if your (Can a I should probably set up a new top level directory, say
to get My If we can get the For now, here is what I did, following instructions from Github: sparklemotion/sqlite3-ruby/issues/185 (LoadError on Windows x64, Ruby 2.3)
I don't know if the effect of the
|
I don't think a separate branch is needed. A |
Ah. I may have seen
or do I also want to include The
In a previous log above, Ruby complained
and I had to get past that by doing a
(well I'm not sure about "had". There may have been another way to get past that) Do I need to re-edit my summary comment above to include patching
and after Ruby complains, doing a
|
I'm trying to run Instiki under Windows 10.
Downloading and installation seem to work fine, but when I run it (
instiki --daemon
) it complains thaticonv
doesn't exist.[ I had tried doing this about a year ago using Ruby200 and had the same problem. For this attempt I uninstalled and deleted all the old ruby stuff, installed 2.3.1p112, and put Instiki in a fresh directory ]
My particular steps:
(Latest commit e145916 2016-07-12)
DevKit-mingw64-32-4.7.2-20130224-1151-sfx.exe
, inited and installed it.ruby dk.rb init
ruby dk.rb install
ruby bundle install --path vendor/bundle
Comparing the output of this install with that shown in issue #36, (Error on start after installation), I find that my output is missing the line:
and has the line
instead of
I tried changing the
Gemfile
lineto
but that doesn't help.
The Gemfile might need an edit of the line
but I have no experience with Ruby and don't know what to do.
Stack Overflow says for some case to add
which is Greek to me. Then again it also says
but then again I have no idea what needs to be fixed.
Here is a full log of my attempt (in the "start command prompt with Ruby" shell). I ruby installed instiki twice so that the 2nd time it would just display
Using
statements.The text was updated successfully, but these errors were encountered: