chopc 0 Posted October 7, 2012 Share Posted October 7, 2012 Decided to give Energia a try I installed Energia on both 32 and 64 bit versions of Ubuntu 12.04 , Mimimal problems with the install ( had to rename librxtxSeriasl.so to OLDlibrxtxSerial.so in the 64 bit install to stop it complaining about wrong word length) but on trying to run the "Blink" program I get the following error :- /home/User/energia/hardware/tools/msp430/bin/../libexec/gcc/msp430/4.6.3/cc1plus: error while loading shared libraries: libmpc.so.2: cannot open shared object file: No such file or directory Any ideas ? Quote Link to post Share on other sites
jsolarski-backup 22 Posted October 8, 2012 Share Posted October 8, 2012 do you have libmpc.so.2 and does it have the right permisions? I have seen this kind of error when moving shared libraries or if they have the wrong permissions chopc 1 Quote Link to post Share on other sites
chopc 0 Posted October 8, 2012 Author Share Posted October 8, 2012 libmpc.so.2 is present in /usr/lib/x86_64-linux-gnu with all users having read permissions Quote Link to post Share on other sites
Rickta59 589 Posted October 8, 2012 Share Posted October 8, 2012 The next release of Energia is going to include an updated compiler. However, you can find it here now: https://github.com/energia/Energia/blob ... 32.tar.bz2 You will have to download and extract that into the appropriate directory on your unpacked Energia directory. The gcc version in that tar file has the FRAM BSL corruption patch installed. Also, it was built with the intent of using fewer external shared libraries by statically linking with some of the required system libraries. If all else fails, you can try the build script located here: https://github.com/energia/Energia/blob ... ild-mspgcc -rick energia and chopc 2 Quote Link to post Share on other sites
olivluca 12 Posted October 8, 2012 Share Posted October 8, 2012 Since I'm running an old distribution and the bundled binaries require a newer glibc, I used that script and (after installing all required dependencies) it worked. I had to use the mspdebug in the binary distribution (the script didn't build it). chopc and energia 2 Quote Link to post Share on other sites
submicro 0 Posted October 20, 2012 Share Posted October 20, 2012 Hello I'm having the same problem. I've tried the above solutions, but I still get the same error message as in your first post. I may have done the script incorrectly. Where should I put it when executing it? Quote Link to post Share on other sites
chopc 0 Posted October 20, 2012 Author Share Posted October 20, 2012 submicro Afraid I can't help , never managed to get Energia running on Ubuntu so I gave up and went to the "Darkside" :- Windows XP , I have an old laptop for some of the many "Windows only" bits of software :-) Quote Link to post Share on other sites
xpg 127 Posted October 20, 2012 Share Posted October 20, 2012 I haven't tried Energia on Ubuntu myself, so this is more a general Ubuntu answer than being Energia specifik. Ensure that the libmpc2 package is installed. If the problem persists try setting the LD_LIBRARY_PATH environment variable to point to the location of libmpc2. To do that open a console and type "export LD_LIBRARY_PATH=/usr/lib", replacing /usr/lib with the location of the file. Next, run Energia from that same console. That should do the trick. Quote Link to post Share on other sites
Rickta59 589 Posted October 20, 2012 Share Posted October 20, 2012 I'm having the same problem. I've tried the above solutions, but I still get the same error message as in your first post. I may have done the script incorrectly. Where should I put it when executing it? There are two options. 1.) replace the /installdir/hardware/tools/msp430 directory under Energia with your newly built tools. Where /installdir is the directory where Energia was extracted. 2.) rename or delete the /installdir/hardware/tools/msp430 and add the bin path of your newly built tools to your PATH before starting energia. -rick Quote Link to post Share on other sites
crow1982 1 Posted November 17, 2012 Share Posted November 17, 2012 FOR UBUNTU-12.04 32 BITS. The file /usr/lib/libgmp.so.3 it's broke, for to solve this problem is necesary to install this library: sudo ln -s /usr/lib/x86_64-linux-gnu/libgmp.so.10.0.2 /usr/lib/libgmp.so.3 sudo apt-get install libgmp3c2 then sudo apt-get update that's all. Quote Link to post Share on other sites
aenikata 0 Posted November 24, 2012 Share Posted November 24, 2012 Thanks, crow1982, that's got my Energia so it will compile sketches (I'm on Ubuntu 12.04/32-bit). However, I still can't deploy to the MSP430 as I have no serial ports listed, so there seems to be something else needed from stock Ubuntu 12.04/32bit, but I don't know what - any ideas? Quote Link to post Share on other sites
aenikata 0 Posted November 24, 2012 Share Posted November 24, 2012 I answered my own question... I did try installing some additional libraries based on another page, then saw that the the one did the debugging as root - I then tried running Energia as root, and I had the necessary options in the menu and it's all working. Quote Link to post Share on other sites
crow1982 1 Posted November 26, 2012 Share Posted November 26, 2012 I'M SORRY BY NOT ANSWER BEFORE, IN MY COMPUTER ENERGIA WORKS GOOD, MAY BE SOME LIBRARIES FROM ANOTHER ONES PROGRAMS HELP, BUT I'M NOT SURE. Quote Link to post Share on other sites
crow1982 1 Posted November 26, 2012 Share Posted November 26, 2012 SOME REFERENCE: http://elabz.com/msp...he-arduino-way/ http://pkgs.org/ubun...1_i386.deb.html Rickta59 1 Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.