"spawn.h not found" while installing octopress on Cygwin - cygwin

I have been trying to install octopress on cygwin. I have googled but no avail. I hope that someone can suggest a hack (no matter how complicated) to resolve this.
I followed the octopress installation instructions. Everything went smoothly till the bundle install stage. When I reached that point, the installation quits with the error telling that it couldn't find spawn.h.
I searched and apparently spawn.h doesn't come in any of the cygwin libraries. I installed all the c++ libraries I could from cygwin setup but that did not help.
Can you please help resolve this?

I think the gem that fails in this process is posix-spawn. For this, you could install the gem locally:
$ gem install rake-compiler -v 0.7.6
$ git clone git://github.com/rtomayko/posix-spawn.git
$ cd posix-spawn
$ rake gem
$ cd pkg/posix-spawn-0.3.6
$ gem install --local posix-spawn-0.3.6.gem
The explanation (from an article I found):
There is a bug in the version of posix-spawn in the gem repositories however that makes installing via gem impossible on Cygwin
After this, try bundle install again, it should be successful.
Here's a related issue on the GitHub project
UPDATE: I recently installed scoop a command-line installer for Windows, a pretty easy setup. I installed Ruby, bundler and octopress without breaking a sweat. You should give it a try.

Related

How to install smlnj in arch linux?

Earlier I was in Ubuntu & it was easy to install smlnj using
apt-get install smlnj
but now I shifted to Arch & I'm finding it difficult to install smlnj.
I tried to find smlnj package through yaourt but I didn't found any.
Then I tried to install it by steps given in official site by downloading tar file. I followed given steps and extracted tar file in /usr/local/sml & then compiled by running command
config/install.sh.
After doing all this I tried to run sml but was not successful. I tried setting environment variable but again was not successful.
Please tell me whether I'm missing any steps or doing it wrong way. What is correct way to install smlnj in Arch Linux?
Update: As Alexander (xyproto) points out, pacman -S smlnj should work again now that SML/NJ is in the [multilib] repository. The solution below would still work, but credit for making installation more convenient should go to him. :-)
Before: It seems that the package became unavailable for x86_64 in Feb 2017, but it doesn't look like it should have happened. I've asked Alexander who maintains the package in [community].
The AUR doesn't contain an smlnj package because it's against AUR policy to overlap with official packages, unless the AUR package is compiled with some tweak that is clearly visible in the package name.
You can still build an Arch package and install that by finding the PKGBUILD and accompanying files at: https://git.archlinux.org/svntogit/community.git/tree/trunk?h=packages/smlnj (or by cloning the git repo below with those four files in it):
~ $ git clone https://github.com/sshine/smlnj-arch.git
~ $ cd smlnj-arch
~/smlnj-arch $ makepkg
~/smlnj-arch $ sudo pacman -U smlnj-110.80-3-x86_64.pkg.tar.xz

jruby/cucumber: Bundle install doesn't install any gem

I'm on Windows 10 x64 and I've installed JRuby 1.7.8 (I tried the files for x64 and 32bits with the same problem) and JRE 7.
I was trying to have my Cucumber Test Framework running on a different machine. I downloaded my current branch (which is working fine in other computers, with all the settings: env.rb, Gemfile, etc) and then I installed successfully these 2 gems:
gem install bundler
gem install cucumber
The Gemfile I have contains loads of gems, similar to:
source 'https://rubygems.org'
gem "httpclient"
gem "watir-webdriver"
but when I execute:
bundle install
I just get this line and nothing gets installed, it finishes almost immediately. No Gemfile.lock is created, etc.
D:\project>bundle install
io/console not supported; tty will not be manipulated
D:\project>
Any idea what could be wrong and what I could try please?
Not quite sure if the issue has anything to do with the line above (which I had never seen in the other machines that are working). If it's not related and you've got an idea about both problems, please let me know and I'll have a look as well...
I've been trying for a few more hours and still not success, adding further info in case someone can spot something pls. Even 'bundle -v' doesn't work on this machine?!
D:\project>gem list
io/console not supported; tty will not be manipulated
*** LOCAL GEMS ***
builder (3.2.2)
bundler (1.13.2)
cucumber (2.4.0)
cucumber-core (1.5.0)
cucumber-wire (0.0.1)
diff-lcs (1.2.5)
gherkin (4.0.0)
jruby-win32ole (0.8.5)
multi_json (1.12.1)
multi_test (0.1.2)
rake (10.1.0)
D:\project>bundle -v
io/console not supported; tty will not be manipulated
D:\project>
Cheers!!
You have the latest version of bundler 1.13.2 installed and I have seen it cause different types of issues depending on the jruby version and some other gems. Bundler 1.10.6 works everytime for my Jruby 1.7.x.
Try these:
gem uninstall bundler
and
gem install bundler -v 1.10.6
Although I am not particularly familiar with jruby, it appears to be a bug, which is resolved in JRuby 1.7.24.
I would verify that the other computers this is working on are still on that version of jruby (assuming they are windows boxes).

fatal: program autoreconf is required but was not found

I followed the installation of GHCJS and when I came to the step "Build the libraries" and I typed the command ghcjs-boot --dev
But I get the following lines in my Terminal
(lines omitted)...
generating configure script for ./boot/base
MyDir/.ghcjs/x86_64-darwin-0.1.0-7.8.3/ghcjs/ghcjs-boot/boot/base$ [autoreconf]: <not found>
fatal: program autoreconf is required but was not found
name searched for (from boot.yaml or command line): autoreconf
searched in PATH:
MyDir/Haskell/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:MyDir/Haskell/bin
Does anyone know what's wrong here?
Just to make life a bit easier for subsequent users who landed here.
If you have already installed homebrew,
brew install automake will install the autoreconf for you.
Your system is lacking the auto(re)conf tool which is (unfortunately) not installed with XCode any more. There is an old post explaining how to install auto(re)conf on OS X manually:
Install autoreconf on OSX lion?

Yi failed to install

Would love to try the Yi editor, but unfortunately, it keeps failing during the installation.
First I get:
> cabal install yi
haskell-src-exts-1.13.0 failed during the configure step. The exception was:
ExitFailure 1
yi-0.6.5.0 depends on haskell-src-exts-1.13.0 which failed to install.
then when I try to install haskell-src-exts I am stumped by this:
setup: The program happy version >=1.17 is required but it could not be found.
cabal: Error: some packages failed to install:
haskell-src-exts-1.13.0 failed during the configure step. The exception was:
ExitFailure 1
installing happy cabal install happy (version 1.18.9 at that) does not help, as it still produces the error above!
I am trying to get this going on ArchLinux. Also, Windows installation didn't work either.
Any ideas?
cabal installs programs to ~/.cabal/bin (on Unix; no idea about Windows) if they are not already installed, and does not warn you to add it to your $PATH; it also (unless you have the latest unreleased version, built from its repo) does not know that it has done so, because it only tracks libraries, not executables. You will need to manually add $HOME/.cabal/bin to your $PATH so that it will be found
(edit be pedantic)
On ubuntu I installed happy using apt-get instead of through cabal, which worked.
Here is what I have done to install Yi with GTK+ under ArchLinux.
First, I tried cabal install yi and I got the same error as you.
To solve this error, I installed happy using this command:
yaourt -S happy
Then, I got another error because the alex package was needed. So, I installed it with:
yaourt -S alex
After that, I got some errors because of gtk2hs packages missing. I installed them with:
yaourt -S haskell-cairo haskell-glib haskell-gtk haskell-pango
Finally, I was able to install Yi with:
cabal install yi -fvty -fpango
I had the same issue in installing hprotoc which has a dependency on haskell-src-exts. The issue I believe was that I was running the sudo command which was modifying the path. When I took the recommended action in the following Q&A, it resolved the issue of finding happy.
sudo changes PATH - why?
Leksah uses Yi as a component, try installing leksah instead. I had similar error messages at one point, the haskell-src-exts error is due to running out of memory. Reboot your computer, have nothing else running except the console, and try again.

Installing foreman on Ubuntu from source

I'm working locally on a NodeJS Heroku app, and I'd like to use foreman to run my app. It apparently didn't install with the Heroku toolbelt (has anyone else had this problem?).
Is there a way to re-install the Heroku toolbelt to get foreman? Or could I get foreman from git? I saw the instructions here but after getting the repo and executing:
git submodule init
git submodule update
It still says that the "foreman" command is not found. What can I do to get foreman to work?
Thanks
Edit: I'm using Ubuntu
Your best bet is to probably install it with Rubygems. You don't mention which OS your on, but we'll assume your not on something mental like Windows (;))
gem -v
if you've got a version back, skip the next bit. You should only need to install RubyGems on Ubuntu (OS X has it in most recent versions)
Ubuntu only
sudo apt-get install rubygems
then
gem install foreman
The project you linked to, http://theforeman.org/projects/foreman, is not Heroku's foreman.
Heroku's foreman is a Ruby gem, and must be installed as a Ruby gem:
$ [sudo] gem install foreman
Whether you need to use sudo depends on your environment, how you installed ruby and rubygems, etc.
I just wanted to amend #Neil's answer. You need to install ruby, not rubygems.
sudo apt-get install ruby
When Ruby is installed you can then install foreman.
gem install foreman --no-rdoc --no-ri
(You don't need --no-rdoc --no-ri but I like to install gems without the documentation on production boxes)
Also take a look at rvm if you're a Ruby person. You might not want to use Ubuntu/Debian's version of Ruby.

Resources