# Setup MangOH for Arduino Use

**URL:** <https://mangoh.discourse.group/t/setup-mangoh-for-arduino-use/411>\
**Category:** Uncategorized\
**Created:** [March 6, 2017, 10:40pm UTC](https://mangoh.discourse.group/t/setup-mangoh-for-arduino-use/411 "2017-03-06T22:40:33Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kas.Lewis](https://avatars.discourse-cdn.com/v4/letter/k/e9a140/32.png) [@Kas.Lewis](https://mangoh.discourse.group/u/Kas.Lewis)\
**Post date:** [March 6, 2017, 10:40pm UTC](https://mangoh.discourse.group/t/setup-mangoh-for-arduino-use/411/1 "2017-03-06T22:40:33Z")

</div>

I am trying to follow the instructions found in the “4119370\_mangOH Green Tutorial - Arduino to AirVantage\_r1” PDF but having issues on page 10 step d.

mangoh@mangoh-virtualbox:~$ echo “export PATH=$PATH:~/git-repo” \>\> .bashrc  
mangoh@mangoh-virtualbox:~$ . ~/.bashrc  
Modules: wp85, wp750x  
SDK Path: /home/mangoh/legato/packages/legato.sdk.16.7.0.wp85-wp75-native-x86\_64-201609301633  
Framework Path: /home/mangoh/legato/packages/legato.framework.16.7.0.201609081601 - $LEGATO\_ROOT  
Toolchain Path: /home/mangoh/legato/packages/legato.toolchain.1.7.3.fw\_SWI9X15Y\_07110900-wp85-wp750x-native-x86\_64-201608171142 - $WP85\_TOOLCHAIN\_DIR $WP750X\_TOOLCHAIN\_DIR  
Device Image Path: /home/mangoh/legato/packages/legato.device.image.7.11.9.00.wpX5-201609121138 - $WPX5\_DEVICE\_IMAGE  
Recovery tools Path: /home/mangoh/legato/packages/legato.recovery.4.0.0.linux-201607191626 - $WPX5\_RECOVERY  
No toolchain found for target ‘ar7’.  
Unable to find compatible cross-build toolchain for target ‘ar7’.  
No toolchain found for target ‘ar86’.  
Unable to find compatible cross-build toolchain for target ‘ar86’.  
/home/mangoh  
“export: command not found

That is the input and the error returned. Any help would be very much appreciated.

Thanks  
Kas

---

<div class="post-metadata">

**Author:** ![dfrey](https://sea2.discourse-cdn.com/flex016/user_avatar/mangoh.discourse.group/dfrey/32/303_2.png) [@dfrey](https://mangoh.discourse.group/u/dfrey)\
**Post date:** [March 7, 2017, 12:03am UTC](https://mangoh.discourse.group/t/setup-mangoh-for-arduino-use/411/2 "2017-03-07T00:03:56Z")

</div>

Hi Kas,

Are you running the commands above under Linux? Are you running a shell other than bash?

Thanks,  
David

---

<div class="post-metadata">

**Author:** ![Kas.Lewis](https://avatars.discourse-cdn.com/v4/letter/k/e9a140/32.png) [@Kas.Lewis](https://mangoh.discourse.group/u/Kas.Lewis)\
**Post date:** [March 7, 2017, 5:16am UTC](https://mangoh.discourse.group/t/setup-mangoh-for-arduino-use/411/3 "2017-03-07T05:16:00Z")

</div>

@dfrey

I have attached a screenshot that hopefully explains exactly what it is I was doing.

 ![](https://us1.discourse-cdn.com/flex016/uploads/mangoh/original/1X/b38d8e69cf342317cc13f8541b9d24a61470edd3.png)

Thankfully  
Kas

---

<div class="post-metadata">

**Author:** ![daav](https://sea2.discourse-cdn.com/flex016/user_avatar/mangoh.discourse.group/daav/32/79_2.png) [@daav](https://mangoh.discourse.group/u/daav)\
**Post date:** [March 7, 2017, 6:07am UTC](https://mangoh.discourse.group/t/setup-mangoh-for-arduino-use/411/4 "2017-03-07T06:07:14Z")

</div>

Hi @Kas.Lewis

There is probably an issue with the quotes characters when copy-pasting from the PDF.  
Should be ""  
But if you look carefully, you used “” (not the same characters).  
And these ones are not understandable by bash.

---

<div class="post-metadata">

**Author:** ![dfrey](https://sea2.discourse-cdn.com/flex016/user_avatar/mangoh.discourse.group/dfrey/32/303_2.png) [@dfrey](https://mangoh.discourse.group/u/dfrey)\
**Post date:** [March 7, 2017, 3:51pm UTC](https://mangoh.discourse.group/t/setup-mangoh-for-arduino-use/411/5 "2017-03-07T15:51:50Z")

</div>

I think @daav is correct. I think that document may have been authored in Microsoft Word and Word has a horrible feature where it replaces regular ASCII quotes with fancy unicode quotes.

---

<div class="post-metadata">

**Author:** ![Kas.Lewis](https://avatars.discourse-cdn.com/v4/letter/k/e9a140/32.png) [@Kas.Lewis](https://mangoh.discourse.group/u/Kas.Lewis)\
**Post date:** [March 7, 2017, 5:13pm UTC](https://mangoh.discourse.group/t/setup-mangoh-for-arduino-use/411/6 "2017-03-07T17:13:13Z")

</div>

It looks like that was part of the issue. I’m guessing now though I have an extra PATH variable that I need to remove but I’m not sure how. Here is an updated screenshot.

Kas

![](https://us1.discourse-cdn.com/flex016/uploads/mangoh/original/1X/fab29a5bcf0e626eb7de63b82d9af1847c0dd467.png)

---

<div class="post-metadata">

**Author:** ![dfrey](https://sea2.discourse-cdn.com/flex016/user_avatar/mangoh.discourse.group/dfrey/32/303_2.png) [@dfrey](https://mangoh.discourse.group/u/dfrey)\
**Post date:** [March 7, 2017, 5:27pm UTC](https://mangoh.discourse.group/t/setup-mangoh-for-arduino-use/411/7 "2017-03-07T17:27:16Z")

</div>

open `/home/mangoh/.bashrc` in a text editor and remove any problematic lines at the bottom of the file.

---

<div class="post-metadata">

**Author:** ![Kas.Lewis](https://avatars.discourse-cdn.com/v4/letter/k/e9a140/32.png) [@Kas.Lewis](https://mangoh.discourse.group/u/Kas.Lewis)\
**Post date:** [March 7, 2017, 5:48pm UTC](https://mangoh.discourse.group/t/setup-mangoh-for-arduino-use/411/8 "2017-03-07T17:48:47Z")

</div>

I could not find the file at “home/mangOH/.bashrc” I instead found it at “home/.bashrc”. I have tried removing any thing unwanted at he bottom but I’m still getting an error.

 ![](https://us1.discourse-cdn.com/flex016/uploads/mangoh/original/1X/3ce8274f96a7996724404f89d3ab36478be30507.png)

 ![](https://us1.discourse-cdn.com/flex016/uploads/mangoh/original/1X/706b69592bd73087758e21bf6900007b49826419.png)

I have rerun the command – echo “export PATH=$PATH:~/git-repo” \>\> .bashrc – and the results in the file are:

 ![](https://us1.discourse-cdn.com/flex016/uploads/mangoh/original/1X/17ebaba045390a4481d1b2621d675aee1a39b2e1.png)

But I still get the same error.

Kas

---

<div class="post-metadata">

**Author:** ![dfrey](https://sea2.discourse-cdn.com/flex016/user_avatar/mangoh.discourse.group/dfrey/32/303_2.png) [@dfrey](https://mangoh.discourse.group/u/dfrey)\
**Post date:** [March 7, 2017, 5:51pm UTC](https://mangoh.discourse.group/t/setup-mangoh-for-arduino-use/411/9 "2017-03-07T17:51:15Z")

</div>

I think there might be a problem with shell expansion before the output is reaching the .bashrc file. Please open the file in an editor and add the following line at the bottom:  
`export PATH=$PATH:~/git-repo`

Delete the lines that have been added previously.

---

<div class="post-metadata">

**Author:** ![Mirac](https://avatars.discourse-cdn.com/v4/letter/m/ac8455/32.png) [@Mirac](https://mangoh.discourse.group/u/Mirac)\
**Post date:** [March 7, 2017, 7:10pm UTC](https://mangoh.discourse.group/t/setup-mangoh-for-arduino-use/411/10 "2017-03-07T19:10:44Z")

</div>

Hi Kas,

Just a side note that there’s an error in step f), the url should be “[https://github.com/mangOH/manifest](https://github.com/mangOH/manifest)” instead of “[https://github.com/mangOH/manifests](https://github.com/mangOH/manifests)”

---

<div class="post-metadata">

**Author:** ![Kas.Lewis](https://avatars.discourse-cdn.com/v4/letter/k/e9a140/32.png) [@Kas.Lewis](https://mangoh.discourse.group/u/Kas.Lewis)\
**Post date:** [March 7, 2017, 7:35pm UTC](https://mangoh.discourse.group/t/setup-mangoh-for-arduino-use/411/11 "2017-03-07T19:35:22Z")

</div>

I tried adding that line and still not working ☹

I also changed theline to “export PATH:~/git-repo” (I think) and now bash can’t find VIM to edit the file again ☹

 ![](https://us1.discourse-cdn.com/flex016/uploads/mangoh/original/1X/ed84bcb481efd943894741bcc60802d18833d624.png)

---

<div class="post-metadata">

**Author:** ![asyal](https://sea2.discourse-cdn.com/flex016/user_avatar/mangoh.discourse.group/asyal/32/78_2.png) [@asyal](https://mangoh.discourse.group/u/asyal)\
**Post date:** [March 7, 2017, 9:07pm UTC](https://mangoh.discourse.group/t/setup-mangoh-for-arduino-use/411/12 "2017-03-07T21:07:13Z")

</div>

Can you paste this  
export PATH=$PATH:~/git-repo

you are pasting export PATH:~/git-repo

---

<div class="post-metadata">

**Author:** ![asyal](https://sea2.discourse-cdn.com/flex016/user_avatar/mangoh.discourse.group/asyal/32/78_2.png) [@asyal](https://mangoh.discourse.group/u/asyal)\
**Post date:** [March 7, 2017, 10:25pm UTC](https://mangoh.discourse.group/t/setup-mangoh-for-arduino-use/411/13 "2017-03-07T22:25:08Z")

</div>

BTW, can you follow the steps here

> **[mangOH/mangOH](https://github.com/mangOH/mangOH)**
>
> Primary mangOH git repository. Contribute to mangOH/mangOH development by creating an account on GitHub.

This build your mangOH git properly. The git structure has changed since the arduino doc was written and the steps listed on this page work.
