- 浏览: 2559930 次
- 性别:
- 来自: 成都
文章分类
最新评论
-
nation:
你好,在部署Mesos+Spark的运行环境时,出现一个现象, ...
Spark(4)Deal with Mesos -
sillycat:
AMAZON Relatedhttps://www.godad ...
AMAZON API Gateway(2)Client Side SSL with NGINX -
sillycat:
sudo usermod -aG docker ec2-use ...
Docker and VirtualBox(1)Set up Shared Disk for Virtual Box -
sillycat:
Every Half an Hour30 * * * * /u ...
Build Home NAS(3)Data Redundancy -
sillycat:
3 List the Cron Job I Have>c ...
Build Home NAS(3)Data Redundancy
Play Raspberry Pi(4)Raspberry Pi B+ and Software Update
1. Install the official operation system
Download the RASPBIAN JESSIE from here
https://www.raspberrypi.org/downloads/raspbian/
Follow the first Blog
http://sillycat.iteye.com/blog/2166582
Use the UI tool to erase the disk with MS-DOC FAT32 format.
Check the disk
> diskutil list
/dev/disk0 (internal, physical):
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme *251.0 GB disk0
1: EFI EFI 209.7 MB disk0s1
2: Apple_CoreStorage Macintosh HD 250.1 GB disk0s2
3: Apple_Boot Recovery HD 650.0 MB disk0s3
/dev/disk1 (internal, virtual):
#: TYPE NAME SIZE IDENTIFIER
0: Apple_HFS Macintosh HD +249.8 GB disk1
Logical Volume on disk0s2
64D3838A-7AC0-43C9-BB1C-517280DB2593
Unencrypted
/dev/disk2 (internal, physical):
#: TYPE NAME SIZE IDENTIFIER
0: FDisk_partition_scheme *31.2 GB disk2
1: Windows_FAT_32 NO NAME 31.2 GB disk2s1
Unmount the disk
> sudo diskutil unmount /dev/disk2s1
Write file to the disk
> sudo dd if=2015-05-05-raspbian-wheezy.img of=/dev/disk2 bs=2m
Then, we can use keyboard and monitor to start the computer and set up the SSH and network.
Set up Latest Node ENV
Use the version http://nodejs.org/dist/v0.12.7/
Try to compile and install the package
> ./configure --prefix=/home/carl/tool/node-v0.12.7
>make
>make install
Check the version after that
> node --version && npm --version
v0.12.7
2.11.3
Java Env are there
> java -version
java version "1.8.0"
Java(TM) SE Runtime Environment (build 1.8.0-b132)
Java HotSpot(TM) Client VM (build 25.0-b70, mixed mode)
Python Env are there
> python -V
Python 2.7.3
Mongo DB Env
http://sillycat.iteye.com/blog/2155801
http://sillycat.iteye.com/blog/2066225
http://sillycat.iteye.com/blog/2065123
http://sillycat.iteye.com/blog/1965857
To install on raspberry, since it is Debian, I choose the Debian version.
> wget https://fastdl.mongodb.org/linux/mongodb-linux-x86_64-debian71-3.0.7.tgz
Unzip it and place it in the right directory. Add the file to the path, but it seems that the command does not work.
Try the generic linux version
> wget https://fastdl.mongodb.org/linux/mongodb-linux-x86_64-3.0.7.tgz
It does not work.
Check the source codes from here https://fastdl.mongodb.org/src/mongodb-src-r3.0.7.tar.gz?_ga=1.77026064.465631442.1447176269
https://docs.mongodb.org/manual/contributors/tutorial/build-mongodb-from-source/
vi docs/building.md
Prepare Tools
> sudo apt-get install scons
> scons --version
SCons by Steven Knight et al.:
script: v2.1.0.r5357[MODIFIED], 2011/09/09 21:31:03, by bdeegan on ubuntu
engine: v2.1.0.r5357[MODIFIED], 2011/09/09 21:31:03, by bdeegan on ubuntu
engine path: ['/usr/lib/scons/SCons']
Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 The SCons Foundation
Fails
> scons all
scons: Reading SConscript files ...
SCons 2.3 or greater required, but you have SCons 2.1.0
Try Install latest scons
wget http://iweb.dl.sourceforge.net/project/scons/scons/2.4.0/scons-2.4.0.tar.gz
Unzip the file and Install with following command
> sudo python setup.py install
> sudo ln -s /usr/local/bin/scons /usr/bin/scons
Great
> scons --version
SCons by Steven Knight et al.:
script: v2.4.0.rel_2.4.0:3365:9259ea1c13d7, 2015/09/21 14:03:43, by bdbaddog on hpmicrodog
engine: v2.4.0.rel_2.4.0:3365:9259ea1c13d7, 2015/09/21 14:03:43, by bdbaddog on hpmicrodog
engine path: ['/usr/local/lib/scons-2.4.0/SCons']
Copyright (c) 2001 - 2015 The SCons Foundation
Fail to build, because fail to meet the requirement
> scons all
scons: Reading SConscript files ...
Mkdir("build/scons")
scons version: 2.4.0
python version: 2 7 3 'final' 0
Checking whether the C++ compiler works... yes
Checking whether the C compiler works... yes
Checking if C++ compiler "g++" is GCC... yes
Checking if C compiler "gcc" is GCC... yes
Checking if C compiler is GCC 4.8.2 or newer...no
Checking if C++ compiler is GCC 4.8.2 or newer...no
ERROR: Refusing to build with compiler that does not meet requirements
Upgrade the C Compiler and C++ Compiler
> sudo apt-get install gcc-4.8 g++-4.8
Remote and relink the command
> sudo ln -s /usr/bin/gcc-4.8 /usr/bin/gcc
> sudo ln -s /usr/bin/g++-4.8 /usr/bin/g++
At least the latest mongoDB is not supported on my raspberry
Unsupported architecture: armv7l:
References:
http://sillycat.iteye.com/blog/2166582
http://sillycat.iteye.com/blog/2169096
http://sillycat.iteye.com/blog/2173417
File download place
https://www.raspberrypi.org/downloads/raspbian/
1. Install the official operation system
Download the RASPBIAN JESSIE from here
https://www.raspberrypi.org/downloads/raspbian/
Follow the first Blog
http://sillycat.iteye.com/blog/2166582
Use the UI tool to erase the disk with MS-DOC FAT32 format.
Check the disk
> diskutil list
/dev/disk0 (internal, physical):
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme *251.0 GB disk0
1: EFI EFI 209.7 MB disk0s1
2: Apple_CoreStorage Macintosh HD 250.1 GB disk0s2
3: Apple_Boot Recovery HD 650.0 MB disk0s3
/dev/disk1 (internal, virtual):
#: TYPE NAME SIZE IDENTIFIER
0: Apple_HFS Macintosh HD +249.8 GB disk1
Logical Volume on disk0s2
64D3838A-7AC0-43C9-BB1C-517280DB2593
Unencrypted
/dev/disk2 (internal, physical):
#: TYPE NAME SIZE IDENTIFIER
0: FDisk_partition_scheme *31.2 GB disk2
1: Windows_FAT_32 NO NAME 31.2 GB disk2s1
Unmount the disk
> sudo diskutil unmount /dev/disk2s1
Write file to the disk
> sudo dd if=2015-05-05-raspbian-wheezy.img of=/dev/disk2 bs=2m
Then, we can use keyboard and monitor to start the computer and set up the SSH and network.
Set up Latest Node ENV
Use the version http://nodejs.org/dist/v0.12.7/
Try to compile and install the package
> ./configure --prefix=/home/carl/tool/node-v0.12.7
>make
>make install
Check the version after that
> node --version && npm --version
v0.12.7
2.11.3
Java Env are there
> java -version
java version "1.8.0"
Java(TM) SE Runtime Environment (build 1.8.0-b132)
Java HotSpot(TM) Client VM (build 25.0-b70, mixed mode)
Python Env are there
> python -V
Python 2.7.3
Mongo DB Env
http://sillycat.iteye.com/blog/2155801
http://sillycat.iteye.com/blog/2066225
http://sillycat.iteye.com/blog/2065123
http://sillycat.iteye.com/blog/1965857
To install on raspberry, since it is Debian, I choose the Debian version.
> wget https://fastdl.mongodb.org/linux/mongodb-linux-x86_64-debian71-3.0.7.tgz
Unzip it and place it in the right directory. Add the file to the path, but it seems that the command does not work.
Try the generic linux version
> wget https://fastdl.mongodb.org/linux/mongodb-linux-x86_64-3.0.7.tgz
It does not work.
Check the source codes from here https://fastdl.mongodb.org/src/mongodb-src-r3.0.7.tar.gz?_ga=1.77026064.465631442.1447176269
https://docs.mongodb.org/manual/contributors/tutorial/build-mongodb-from-source/
vi docs/building.md
Prepare Tools
> sudo apt-get install scons
> scons --version
SCons by Steven Knight et al.:
script: v2.1.0.r5357[MODIFIED], 2011/09/09 21:31:03, by bdeegan on ubuntu
engine: v2.1.0.r5357[MODIFIED], 2011/09/09 21:31:03, by bdeegan on ubuntu
engine path: ['/usr/lib/scons/SCons']
Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 The SCons Foundation
Fails
> scons all
scons: Reading SConscript files ...
SCons 2.3 or greater required, but you have SCons 2.1.0
Try Install latest scons
wget http://iweb.dl.sourceforge.net/project/scons/scons/2.4.0/scons-2.4.0.tar.gz
Unzip the file and Install with following command
> sudo python setup.py install
> sudo ln -s /usr/local/bin/scons /usr/bin/scons
Great
> scons --version
SCons by Steven Knight et al.:
script: v2.4.0.rel_2.4.0:3365:9259ea1c13d7, 2015/09/21 14:03:43, by bdbaddog on hpmicrodog
engine: v2.4.0.rel_2.4.0:3365:9259ea1c13d7, 2015/09/21 14:03:43, by bdbaddog on hpmicrodog
engine path: ['/usr/local/lib/scons-2.4.0/SCons']
Copyright (c) 2001 - 2015 The SCons Foundation
Fail to build, because fail to meet the requirement
> scons all
scons: Reading SConscript files ...
Mkdir("build/scons")
scons version: 2.4.0
python version: 2 7 3 'final' 0
Checking whether the C++ compiler works... yes
Checking whether the C compiler works... yes
Checking if C++ compiler "g++" is GCC... yes
Checking if C compiler "gcc" is GCC... yes
Checking if C compiler is GCC 4.8.2 or newer...no
Checking if C++ compiler is GCC 4.8.2 or newer...no
ERROR: Refusing to build with compiler that does not meet requirements
Upgrade the C Compiler and C++ Compiler
> sudo apt-get install gcc-4.8 g++-4.8
Remote and relink the command
> sudo ln -s /usr/bin/gcc-4.8 /usr/bin/gcc
> sudo ln -s /usr/bin/g++-4.8 /usr/bin/g++
At least the latest mongoDB is not supported on my raspberry
Unsupported architecture: armv7l:
References:
http://sillycat.iteye.com/blog/2166582
http://sillycat.iteye.com/blog/2169096
http://sillycat.iteye.com/blog/2173417
File download place
https://www.raspberrypi.org/downloads/raspbian/
发表评论
-
Update Site will come soon
2021-06-02 04:10 1686I am still keep notes my tech n ... -
Stop Update Here
2020-04-28 09:00 322I will stop update here, and mo ... -
NodeJS12 and Zlib
2020-04-01 07:44 484NodeJS12 and Zlib It works as ... -
Docker Swarm 2020(2)Docker Swarm and Portainer
2020-03-31 23:18 374Docker Swarm 2020(2)Docker Swar ... -
Docker Swarm 2020(1)Simply Install and Use Swarm
2020-03-31 07:58 375Docker Swarm 2020(1)Simply Inst ... -
Traefik 2020(1)Introduction and Installation
2020-03-29 13:52 344Traefik 2020(1)Introduction and ... -
Portainer 2020(4)Deploy Nginx and Others
2020-03-20 12:06 435Portainer 2020(4)Deploy Nginx a ... -
Private Registry 2020(1)No auth in registry Nginx AUTH for UI
2020-03-18 00:56 444Private Registry 2020(1)No auth ... -
Docker Compose 2020(1)Installation and Basic
2020-03-15 08:10 381Docker Compose 2020(1)Installat ... -
VPN Server 2020(2)Docker on CentOS in Ubuntu
2020-03-02 08:04 463VPN Server 2020(2)Docker on Cen ... -
Buffer in NodeJS 12 and NodeJS 8
2020-02-25 06:43 394Buffer in NodeJS 12 and NodeJS ... -
NodeJS ENV Similar to JENV and PyENV
2020-02-25 05:14 487NodeJS ENV Similar to JENV and ... -
Prometheus HA 2020(3)AlertManager Cluster
2020-02-24 01:47 431Prometheus HA 2020(3)AlertManag ... -
Serverless with NodeJS and TencentCloud 2020(5)CRON and Settings
2020-02-24 01:46 342Serverless with NodeJS and Tenc ... -
GraphQL 2019(3)Connect to MySQL
2020-02-24 01:48 254GraphQL 2019(3)Connect to MySQL ... -
GraphQL 2019(2)GraphQL and Deploy to Tencent Cloud
2020-02-24 01:48 455GraphQL 2019(2)GraphQL and Depl ... -
GraphQL 2019(1)Apollo Basic
2020-02-19 01:36 332GraphQL 2019(1)Apollo Basic Cl ... -
Serverless with NodeJS and TencentCloud 2020(4)Multiple Handlers and Running wit
2020-02-19 01:19 318Serverless with NodeJS and Tenc ... -
Serverless with NodeJS and TencentCloud 2020(3)Build Tree and Traverse Tree
2020-02-19 01:19 324Serverless with NodeJS and Tenc ... -
Serverless with NodeJS and TencentCloud 2020(2)Trigger SCF in SCF
2020-02-19 01:18 302Serverless with NodeJS and Tenc ...
相关推荐
RaspberryPi-CPUMiner, CPUMiner RaspberryPi零,Pi 3,Pi 2,B+,+ raspberrypi CPUMiner + CPUMiner,带有新算法( 检查波纹管)CPUMiner RaspberryPi零,Pi 3,引脚 2,B+,A+ 。克隆:池 PiZero指令:下载minerd到...
本次提供的压缩包“pi-bootloader”包含了Raspberry Pi 3B+的重要组成部分——GPU固件和引导加载程序(bootloader)的更新文件。这些文件对于理解和优化Raspberry Pi的启动过程以及系统性能至关重要。 首先,我们要...
**Raspberry Pi 3 Model B+ (树莓派3B+) 是一款流行的单板计算机,由英国树莓派基金会设计,广泛应用于教育、物联网(IoT)项目、媒体中心和其他低功耗计算任务。该设备的硬件配置和设计是其核心特点。** **在...
介绍Raspberry Pi 4的用户手册,值得一读。 In our opinion, you will certainly adore the Raspberry Pi 4. Ultra-small, affordable, even cheaper than most video games, you can use the Pi to build ...
树莓派 Raspberry Pi B+ 原理图知识点总结: 树莓派(Raspberry Pi)是一个系列的单板计算机,由英国Raspberry Pi基金会开发,旨在提供一种低价、便携、适合教育用途的计算机解决方案。Raspberry Pi B+ 是该系列中...
MEDIA CENTER WITH XBMC AND RASPBERRY PI 2 MINIATURE BALLOON MINECRAFT SERVER RUNNING ON RASPBERRY PI 2 CHAPTER 3: USING THE RASPBERRY PI 2FOR YOUR PROJECT DIFFERENCES BETWEEN THE ARDUINO BOARD AND ...
You'll work with Linux driver information and explore the different Raspberry Pi models, including the Pi Zero, Pi Zero W, Pi 2, Pi3 B and Pi3 B+. You'll also review a variety of project examples ...
The Raspberry Pi Zero, one of the most inexpensive, fully-functional computers available, is a powerful and revolutionary product developed by the Raspberry Pi Foundation. The Raspberry Pi Zero opens ...
树莓派Raspberry Pi 4B+是一款小巧而强大的单板计算机,被广泛用于学习编程、搭建服务器和各种DIY项目。本操作手册将指导您如何在树莓派上安装操作系统,并配置Nginx服务器。 首先,您需要从提供的链接(由于实际...
This new fourth edition has been updated to cover the Raspberry Pi 3 board and software, with detailed discussion on its wide array of configurations, languages, and applications. You'll learn how to...
The world of Raspberry Pi is evolving quickly, with many new interface boards and software libraries becoming available all the time. In this cookbook, prolific hacker and author Simon Monk provides ...
This practical tutorial will help you quickly get up and running with Raspberry Pi Zero to control hardware and software and write simple programs and games. You will learn to build creative programs...
本文将详细解析Raspberry Pi 1代B的原理图,主要涉及电源、USB、网卡接口以及BCM2835处理器等关键部分。 首先,我们来看电源部分。Raspberry Pi 1代B模型需要通过USB Power Input提供5V电压,至少700mA的电流来保证...
本文将详细介绍如何在Raspberry Pi 3B上构建并运行Chromium OS,让你的小型设备焕发新的活力。 首先,确保你已经拥有以下硬件和软件准备: 1. 一台Raspberry Pi 3B模型,包括电源和microSD卡。 2. 最新版本的...
Experiment with connecting electronics up to your Raspberry Pi 2 and interacting with them through software Learn about the Raspberry Pi 2 architecture and Raspbian operating system through innovative...
《Wiley Learning Python with Raspberry Pi 2014》是一本专为初学者设计的教程,旨在引导读者通过树莓派这一小型计算机平台学习Python编程。这本书由2014年出版,当时Python已是编程界的热门语言,而树莓派因其低...