How to install specific gnuradio version using PyBombs? - gnuradio

I would like to install specific gnuradio library release (3.7.10) using PyBombs (https://github.com/gnuradio/pybombs).
I have done following steps:
sudo pip install PyBOMBS
pybombs auto-config
pybombs recipes add gr-recipes git+https://github.com/gnuradio/gr-recipes.git
pybombs recipes add gr-etcetera git+https://github.com/gnuradio/gr-etcetera.git
mkdir /home/myuser/gnuradio
Now if I run pybombs prefix init /home/myuser/gnuradio/prefix -a myprefix -R gnuradio-default it will install the latest gnuradio. How could I install some older releases? I see that in the recipes file /home/myuser/.pybombs/recipes/gr-recipes/gnuradio.lwr i could set a branch, but is it possible to set a release tag?
My machine is running Ubuntu 16.04

Here is the way I installed older tagged release v3.7.11, note the pybombs config command before installing:
sudo pip install PyBOMBS
pybombs auto-config
pybombs recipes add gr-recipes git+https://github.com/gnuradio/gr-recipes.git
pybombs recipes add gr-etcetera git+https://github.com/gnuradio/gr-etcetera.git
mkdir /home/myuser/gnuradio
pybombs config --package gnuradio gitrev v3.7.11
pybombs prefix init /home/myuser/gnuradio/prefix -a myprefix -R gnuradio-default

Related

How to test API from a ROS1 package that works with another ROS2 package?

I have found one ROS1 git repo/package. But it was tested with confirmed ROS Version : ROS Melodic Morenia and Ubuntu 18.04 LTS. So it can be build with catkin_build. Using the following commands
$ cd ~/
$ mkdir --parents catkin_ws/src
$ cd catkin_ws
$ catkin init
$ catkin build
A reference site about vcstool that builds packages after installing dependent packages and overlays your workspace on the installation environment
$ cd ~/catkin_ws/src
$ git clone https://github.com/ros1-package.git
$ sudo apt update
$ sudo apt install python-vcstool python-rosdep python-catkin-tools
$ git clone https://github.com/strv/vcstool-utils.git
$ rosdep install --from-paths ~/catkin_ws/src --ignore-src -r -y
$ ./vcstool-utils/import_all.sh -s .rosinstall ~/catkin_ws/src
$ catkin build
$ source ../devel/setup.bash
Then I have my own repo/package but it uses ROS2. I would like to try and test the existing API of the first ROS1 git repo/package to see if its works together with my own ROS2 package. Would appreciate a help how can proceed and how can test/try the API of the first ROS1 package with my own ROS2 package. Any help?
You can use the ROS 1 to ROS 2 bridge: https://github.com/ros2/ros1_bridge

Rbenv: Ruby not installed Command 'ruby' not found (AWS t3a Ubuntu 18.04)

I'm trying to install Ruby via Rbenv on Ubuntu 18.04 on AWS t3a using these instructions: https://www.digitalocean.com/community/tutorials/how-to-install-ruby-on-rails-with-rbenv-on-ubuntu-18-04
sudo apt update
sudo apt install -y autoconf bison build-essential libssl-dev libyaml-dev libreadline6-dev zlib1g-dev libncurses5-dev libffi-dev libgdbm5 libgdbm-dev
git clone https://github.com/rbenv/rbenv.git ~/.rbenv
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc
echo 'eval "$(rbenv init -)"' >> ~/.bashrc
source ~/.bashrc
git clone https://github.com/rbenv/ruby-build.git ~/.rbenv/plugins/ruby-build
rbenv install 2.6.3
rbenv global 2.6.3
However, after the rbenv global 2.6.3 part and then run ruby -v, I get
Ruby not installed Command 'ruby' not found
But when I run rbenv versions it tells me 2.6.3 is listed.
How can I install ruby?
Used screen -d -r to see the error message which was uncommon.mk:545: recipe for target 'rdoc' failed
Found the solution in https://github.com/postmodern/ruby-install/issues/223
Instead of:
rbenv install 2.6.3
Do:
RUBY_CONFIGURE_OPTS=--disable-install-doc rbenv install 2.6.3
Try
bundle exec ruby
And should be work

bazel 0.21.0 install from installer fails on ubuntu 18.04.1

I want to install tensorflow-1.13.0-rc2.
But when I want to install bazel 0.21.0 on ubuntu 18.04.1, the steps I take don't work.
At the directory of my installer, I run:
$sudo apt-get install pkg-config zip g++ zlib1g-dev unzip
$chmod +x bazel-0.21.0-installer-linux-x86_64.sh
$./bazel-0.21.0-installer-linux-x86_64.sh --user
Then I edit the bashrc file by adding this:
export PATH="$PATH:$HOME/bin"
(Then I save the file and run the shell; afterwards, I restart the terminal of ubuntu.)
The above steps follow this link.
Finally when I run
bazel version
terminal gives me
Command 'bazel' not found, did you mean:
command 'babel' from deb openbabel
Try: sudo apt install
Please help, thanks.
After carefully watch the differences between my steps and official website....
I don't know why but I found that
$sudo apt-get install pkg-config zip g++ zlib1g-dev unzip
is wrong.
$sudo apt-get install pkg-config zip g++ zlib1g-dev unzip python
is the correct one.
Re-run those steps, and bazel 0.21.0 is indeed installed.

SASS instead of LESS in Odoo 9

How to use Sass instead of Less in Odoo v9?
I have very basic setup following guidelines of official documentation. It works as excpected with Less, but I can not make it to work with Sass. Following in views/assets.xml works as excpected:
<link href="/theme_name/static/less/style.less" rel="stylesheet" type="text/less"/>
but when I change it to scss:
<link href="/theme_name/static/scss/style.scss" rel="stylesheet" type="text/scss"/>
my styles are no longer loaded. No error is given also.
It might be worth to mention that I did get an error when I tried link type text/sass
Could not execute command 'sass'
Finally got time to look into this and figure out the magic behind compiling stylesheets.
First off, the SCSS syntax is not supported. Correct link or style tag type is text/sass or text/less. Second way Odoo determines the syntax is by file extension .sass or .less. You can set either or both, result is same. See the code responsible for the magic.
Secondly, the error message indicates that underlying operating system do not have command sass in its current execution PATH. The command itself must be pre-installed by you.
Odoo looks for an executable sass in active system PATH and calls it with specific options listed here.
There is diffrent versions of sass compilers, but Odoo expects it to be the ruby version.
See installing section in sass homepage for more information.
Addition to sass, you also need compass and bootstrap-sass ruby gems.
How exactly you decide to install all those depends of your operating system, environment setup and taste, but you need ruby version >2.0.
Bonus: This is how I did it in Ubutnu 14.04.
Ubuntu by default has ruby 1.9. Check what you got with dpkg -s ruby. Fortunately there is a repository hosting it. So let's add that and install ruby 2.3.
sudo apt-add-repository ppa:brightbox/ruby-ng
sudo apt-get update
sudo apt-get install ruby2.3 ruby2.3-dev
You'll need the -dev package too. Check the version of you ruby now with ruby -v.
Next you must install the required gems:
gem install sass compass bootstrap-sass --user-install
I used the option --user-install in my dev machine to install gems to my home dir, instead globally. That depends again of your prefeerence and system setup. But in general, the user running odoo, must also have execution permission on those gems, where ever they are.
If you are using ubuntu and having errors/warns of sass & lessc ,etc in your odoo webapp,
Then you should try following for them:-
[Removing Hotch Potch]
$ sudo su # Switch To Root Before Working ##
# rm -f /usr/bin/lessc /usr/bin/node
# apt remove node*
# cd /etc/apt/sources.list.d
# rm -f chris-lea-node_js-trusty.list *.save neurobin-ppa-trusty.list noobslab-apps-trusty.list
# rm -f /var/cache/apt/archives/lock
# apt-get clean
[Installing Required Deps]
# apt-get install python-pip python-dev libevent-dev gcc libxml2-dev libxslt-dev node-less libldap2-dev libssl-dev build-essential zlib1g-dev libssl-dev libreadline6-dev libyaml-dev python-software-properties ruby -y
[Installing Compatible NodeJs & lessc]
# apt-add-repository ppa:chris-lea/node.js
# apt-get update
# apt-get install nodejs
# npm install -g npm
# npm install -g less less-plugin-clean-css
# npm install -g less
# npm install -g node-less
# rm -f /etc/apt/sources.list.d/*.save /etc/apt/sources.list.d/*.log
[Installing Ruby > 2.0 & Required Sass gems]
# cd /tmp
# wget http://cache.ruby-lang.org/pub/ruby/2.0/ruby-2.0.0-p481.tar.gz
# tar -xvzf ruby-2.0.0-p481.tar.gz
# cd ruby-2.0.0-p481/
# ./configure --prefix=/usr/local
# make
# make install
# ruby --version # Should be greater than 2.0
# gem install sass
# gem install bootstrap-sass
# gem install compass
[Starting Your WebApp]
# cd <path to main source code>
# python openerp-server -c openerp-server.conf
Thanks!! n Have Nice Time !!

Phalcon install give error on ubuntu [duplicate]

I'm just finished installing Ubuntu 13.10.
I want try Phalcon, and when I build the source (phalcon.so), I have this error :
from /home/fabrice/Downloads/cphalcon/build/32bits/phalcon.c:204:
/usr/include/php5/ext/pcre/php_pcre.h:29:18: fatal error: pcre.h: No such file or directory
#include "pcre.h"
^
compilation terminated.
make: *** [phalcon.lo] Erreur 1
My installation of lamp is :
sudo apt-get install -y apache2 php5 mysql-server libapache2-mod-php5
php5-mysql php5-curl php5-imagick php5-mcrypt php5-memcache
php5-sqlite php5-xdebug php-apc php5-intl php-mongo php5-dev gcc
Can anybody help me ?
The latest version of Phalcon uses PCRE libraries.
You can install them like so:
sudo apt-get install libpcre3-dev
and then try and install Phalcon again
For CentOS you will need to use
sudo yum install pcre-devel
Credits: #xgretsch
For Mac you can use
brew install pcre
Credits #Brandon Romano
For Mac without brew
Go to https://www.pcre.org/ and download latest pcre:,
tar -xzvf pcre-8.42.tar.gz
cd pcre-8.42
./configure --prefix=/usr/local/pcre-8.42
make
make install
ln -s /usr/local/pcre-8.42 /usr/sbin/pcre
ln -s /usr/local/pcre-8.42/include/pcre.h /usr/include/pcre.h
Credits #user1377324
For mac osx maverick you can use
brew install pcre
if it gives you error, you can use
sudo ln -s /opt/local/include/pcre.h /usr/include/
sudo pecl install apc
I have installed pcre via homebrew in Big Sur, so linked as:
sudo ln -s /opt/homebrew/include/pcre2.h /usr/local/include/
To include pcre.h file, search the package archives for the pcre.h file.
To do this I use a command called apt-file (
apt-get install apt-file
and
apt-file update
if you don’t have it installed).
Then search for the pcre package:
apt-file search -x "/pcre.h$"
The -x informs the command that I want to use a regular expression as the pattern. apt-file provided me with three hits:
kannel-dev: /usr/include/kannel/gwlib/pcre.h
libajax6-dev: /usr/include/ajax/pcre.h
libpcre3-dev: /usr/include/pcre.h
The last one is the one I want:
apt-get install libpcre3-dev
This will solve the problem with pcre.h file compilation problem. Hope it will help others, who may come to find an answer to this thread.
For MacOS monterey amd64 (darwin), it is necessary to create a symlink.
First, locate where the pcre.h was installed by Brew:
$ brew list pcre | grep 'pcre\.h$'
/opt/homebrew/Cellar/pcre/8.45/include/pcre.h
Then, gets the directory that GCC is looking for header (.h) files:
$ cpp -v
...
#include <...> search starts here:
/Library/Developer/CommandLineTools/usr/lib/clang/13.0.0/include
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include
/Library/Developer/CommandLineTools/usr/include # <---- we are going to use this one
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks (framework directory)
Finally, create a symlink to the pcre.h file, so that GCC will find it in its search path:
ln -s /opt/homebrew/Cellar/pcre/8.45/include/pcre.h \
/Library/Developer/CommandLineTools/usr/include/pcre.h
To test if it worked, we can use the following C code:
#include <stdio.h>
#include <pcre.h>
int main() {
printf("lala popo");
return 0;
}
And run:
gcc test.c -o test
πŸŽ‰πŸŽ‰πŸŽ‰πŸŽ‰πŸŽ‰πŸŽ‰
Using macOS Monterey 12.6 on an M1 Pro MacBook Pro, here are the steps necessary to install outh extension for PHP 8.1 using brew:
brew install pcre
brew install pcre2
sudo ln -s /opt/homebrew/include/pcre.h /usr/local/include/
sudo ln -s /opt/homebrew/include/pcre2.h /usr/local/include/
sudo pecl install oauth