problems installing scrapy ..missing gcc 4.0 - gcc

I am having trouble installing scrapy with easy_install, I get:
unable to execute gcc-4.0: No such file or directory
error: Setup script exited with error: command 'gcc-4.0' failed with exit status 1
I have gcc-4.2. I've been trying to downgrade to gcc-4.0 but cannot figure out a way ...

You need to setup your environment:
First, install Command Line Tools for Xcode (I'm not 100% sure that you can install without XCode, if not then install XCode from App Store).
Then install MacPorts
To complete macports setup run this command in Terminal.app:
% sudo port selfupdate
If you done, then you can install scapry from macports:
% sudo port install py27-scrapy
Afther this you should be able to use scrapy command in Terminal.app.

Related

Cygwin terminal is only recognizing `pip3 install` rather than `pip2 install`

I need to install the python future module to compile a code using ./waf command, and I'm doing this using the Cygwin 64 terminal. However, due to incompatibility issues I keep getting future module not found though it is already installed. I'm trying to re-install the module using pip2 install command, and the following error occurred:
Gover#LAPTOP-OV3886CH /cygdrive/d/ardupilot
$ pip2 install future
-bash: pip2: command not found
However, I can install the future module using pip3 install , but this is still not compatible with the ./waf command. Why is pip2 install not working?
Install python27-pip and python27packages
see package contents on
https://cygwin.com/packages/x86_64/python27-pip/python27-pip-20.3.3-2

Error installing PyGObject, 'glib-object.h' file not found

I am trying to install pygobject for python 2.7 in pycharm for the purpose of using gstreamer. However I am having problems installing it. While in the virtual environment, if I use
pip install pygobject
Then the build fails and gives me this error
gi/gimodule.c:25:10: fatal error: 'glib-object.h' file not found
#include <glib-object.h>
^~~~~~~~~~~~~~~
1 error generated.
error: command 'cc' failed with exit status 1
full error log here
I know for a fact that glib exists on my system from searching for it with
find /usr -name glib-object.h
but for some reason the install can't find it. Do I have to link it in somehow/how do I go about doing this?
Also I know I can more successfully use this library with python3 but that caused some weird system errors that can apparently be resolved by using 2.7 so I am just exploring that at the moment.
With virtual environments it's recommended installing PyGObject with pipenv instead of pip.
Install pipenv with either MacPorts, HomeBrew or pipsi:
MacPorts
port install pipenv
HomeBrew
brew install pipenv
pipsi
curl https://raw.githubusercontent.com/mitsuhiko/pipsi/master/get-pipsi.py | python3 - --src=git+https://github.com/mitsuhiko/pipsi.git\#egg=pipsi
echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.bashrc
source ~/.bashrc
pipsi install pew
pipsi install pipenv
Once you've got pipenv installed then you should be able to add the package to your virtual environment:
pipenv install pygobject
↳ PyGObject : Creating A Development Environment

dfu-programmer 0.6.2 error message during ./bootstrap.sh

I'm after little help. I'm working on a hobby project to create a mouse from an Arduino with an accelerometer.
For part of this I need to change the firmware on the atmega16u2. I have a mac so to do this I am trying to use the dfu-programmer.
When I use the ./bootstrap.sh command line in terminal I get the following error messages displayed. I was wondering if anyone could shed some light on what they mean and if this would prevent the program from working ?
DJ:dfu-programmer-0.6.2 hd334$ ./bootstrap.sh
sh: autom4te: command not found
aclocal: error: echo failed with exit status: 127
./bootstrap.sh: line 3: autoheader: command not found
sh: autoconf: command not found
automake: error: autoconf failed with exit status: 127
./bootstrap.sh: line 5: autoconf: command not found
DJ:dfu-programmer-0.6.2 hd334$
You need to install autom4te, autoheader, autoconf, libusb-compat and libusb before executing dfu-programmer.
All those auto* prerequisites are included in autoconf package. I recommend you to install home-brew package manager. It can do these things automatically. Although there is dfu-programmer package in the repository, so you can install it automatically too.
To install home-brew, run this command in your Terminal:
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
Recommended: After that, install dfu-programmer with this command:
brew install dfu-programmer
If you want to install prerequisites only, run this command:
brew install autoconf libusb libusb-compat
then rerun ./bootstrap.sh.

How to install biicode on osx command line (for travis)

I need to install biicode on travis OSX machines. Is it possible to install biicode from the command line on OSX?
I tried to install it with sudo installer -pkg bii-macos-64_3_3.pkg -target / but it fails. Triying to install it with homebrew (cask) also fails with this error.

installing ruby 1.9.3 of osx mavricsmavrics

I am trying to install ruby 1.9.3 on my osx 10.9 operating system and I keep getting the following error :
Error running 'requirements_osx_port_update_system ruby-1.9.3-p448',
please read /Users/ramesh/.rvm/log/1383430694_ruby-1.9.3-p448/update_system.log
Requirements installation failed with status: 1.
I am using the following command to do the installtion :
rvm install 1.9.3
The complete log is as given below :
checking for Tcl configuration... configure: error: Can't find Tcl configuration definitions
Command failed: cd /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/base && CC=/usr/bin/cc ./configure --prefix=/opt/local --with-tclpackage=/Library/Tcl --with-install-user=root --with-install-group=admin --with-directory-mode=0755 --enable-readline && make && make install SELFUPDATING=1
Exit code: 1
DEBUG: Error installing new MacPorts base: command execution failed
while executing
"macports::selfupdate [array get global_options] base_updated"
Error: /opt/local/bin/port: port selfupdate failed: Error installing new MacPorts base: command execution failed
Requirements update log :
checking for Tcl configuration... configure: error: Can't find Tcl configuration definitions
Command failed: cd /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/base && CC=/usr/bin/cc ./configure --prefix=/opt/local --with-tclpackage=/Library/Tcl --with-install-user=root --with-install-group=admin --with-directory-mode=0755 --enable-readline && make && make install SELFUPDATING=1
Exit code: 1
DEBUG: Error installing new MacPorts base: command execution failed
while executing
"macports::selfupdate [array get global_options] base_updated"
Error: /opt/local/bin/port: port selfupdate failed: Error installing new MacPorts base: command execution failed
Finally I found the solution. I had to install the new command line tools for osx 10.9 (Mavrics) using the following command.
sudo xcode-select --install
Then I had to run the following command to do the macports selfupdate.
sudo port -v selfupdate
Then I can successfull install ruby 1.9.3 using the following command.
rvm install 1.9.3
Hope this will be helpful to anyone facing the same dilema.
On my computer (running mavericks), it seemed like xcode's command line tools were installed because I had access to gcc, git, etc. But there was a small additional package I had to download by doing:
$ sudo xcode-select --install
This prompts to install the command line tools. Followed by $ rvm requirements the rvm prerequisites installed properly and I was able to install ruby.

Resources