paparazzi-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Paparazzi-devel] Paparazzi on Mac OSX


From: Stephen Dwyer
Subject: Re: [Paparazzi-devel] Paparazzi on Mac OSX
Date: Wed, 4 Dec 2013 15:09:23 -0700

Hello Iman,

Hmm, I tried to get a script going on the binary installer that set up the environment correctly, but it doesn't seem to be quite working yet unfortunately.

To get things going manually, assuming you want paparazzi installed items to be the priority and you have paparazzi source in ~/paparazzi:

Create a symlink in to the paparazzi installed python:
sudo ln -s /opt/paparazzi/bin/python2.7 /opt/paparazzi/bin/python

Set up your path correctly using .profile:
echo "export PATH=/opt/paparazzi/bin:/opt/paparazzi/sbin:$PATH" >> ~/.profile

You may also want to set up the environment variables:
echo "export PAPARAZZI_HOME=$HOME/paparazzi" >> ~/.profile
echo "export PAPARAZZI_SRC=$HOME/paparazzi" >> ~/.profile

If you had previously tried paparazzi with the binary installer, you can delete a file that is no longer needed:
sudo rm /etc/paths.d/paparazzi

Let me know if that helps at all. Be sure to start a new terminal instance before trying to build paparazzi.

Basically, the issue is when you call python (or other binaries), it will search, in order, directories you have in $PATH. To get the python installed with paparazzi, the path needs to be updated to make sure it is found first. In addition, the symlink is needed because macports by default doesn't "enable" the python it installs.

Since you have Macports installed as well, you can always try installing from there instead, so you don't start having two instances of a bunch of the same thing. It does take quite a while to install though.

Thanks,
-Stephen Dwyer


On Mon, Dec 2, 2013 at 11:10 PM, Iman <address@hidden> wrote:
Hi Stephen

I used binary installer from paparazziuav.org:
paparazzi-tools-Lion_2013-11-18_21-01-05GMT


and about the commands:
which python
 /usr/bin/python
Python 2.7.1 (r271:86832, Jul 31 2011, 19:30:53)
[GCC 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2335.15.00)] on
darwin
Type "help", "copyright", "credits" or "license" for more information.



port installed

 port installed
Warning: port definitions are more than two weeks old, consider updating
them by running 'port selfupdate'.
The following ports are currently installed:
  bzip2 @1.0.6_0 (active)
  coreutils @8.21_0 (active)
  cython_select @0.1_0 (active)
  db46 @4.6.21_8 (active)
  db_select @0.1_2 (active)
  expat @2.1.0_0 (active)
  gettext @0.18.3_0 (active)
  gmp @5.0.5_0 (active)
  libedit @20121213-3.0_0 (active)
  libiconv @1.14_0 (active)
  libyaml @0.1.4_1 (active)
  ncurses @5.9_2 (active)
  openssl @1.0.1e_1 (active)
  python27 @2.7.5_1
  python_select @0.3_2 (active)
  sqlite3 @3.7.17_0 (active)
  xz @5.0.5_0 (active)
  zlib @1.2.8_0 (active)



  echo $PATH
/opt/local/bin:/opt/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/opt/paparazzi/bin:/opt/paparazzi/sbin:/usr/texbin



/Users/imanshirdareh/.profile




--
View this message in context: http://lists.paparazziuav.org/Paparazzi-on-Mac-OSX-tp3564p14184.html
Sent from the paparazzi-devel mailing list archive at Nabble.com.

_______________________________________________
Paparazzi-devel mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/paparazzi-devel



reply via email to

[Prev in Thread] Current Thread [Next in Thread]