No response when trying to install instrument-control package in octave - octave

I am running raspbian on a Raspberry-Pi 2 B. I am trying to install the instrument-control package in octave 3.6.2.Initially I got a mkoctfile missing error:
Installing octave package in ubuntu http://ubuntuforums.org/showthread.php?t=955385
With 'sudo apt-get install octave-pkg-dev' this problem was solved.
However, when I try to install the instrument-control package in octave with: 'pkg install -forge instrument-control' nothing is happening, the command prompt underscore is just flickering as if it is processing something, but nothing happens for at least half an hour (I didn't try longer). I tried running octave as superuser, but the same thing happened.
I would very much appreciate if someone could help me out on this.
NB This is my first post here, and am not a super-experienced computerist so please tell me if I need to provide more information in any form.

It turned out that it actually takes longer than 30 minutes to compile all the necessary files, so octave is actually doing something. You just have to wait longer. When using -verbose this becomes more clear.

The downloading process might be hanging.
As a workaround, you can download the instrument-control package there.
Put it in your directory on the raspberry.
And then, in octave launched from the same directory, issue
pkg install instrument-control-0.2.1.tar.gz

Related

Can't add pygame to pycharm?

Could someone help me with adding pygame to pycharm, I've tried going to pycharm setting and installing pygame in the project interpreter where the + sign is
Me going to setting and project interpreter
Me going to install pygame
But when installing this error appears
Me installing but the error occurs once done
More details on the error that occur
I've tried going to the command prompt and installing pygame there
This is what I did
But this error occurs
This error always occurs
I've tried looking at my environmental variable and followed a video, to see if my path is correct, which it is. Checked that I've updated pip and that tried running the command prompt both as an administrator and not. And even tried to uninstall and install different versions of python.
At this point I need help? If anyone could help, I would be truly grateful.
I finally figured it out, IF you're using python 3.8.0, python for whatever reason not allow you to install pygame or for any other package, in fact, you'll get the errors I got above in my question. The way to fix this is that you must uninstall python 3.8.0 and install an older version (I installed Python 3.7.5), this worked for me and allowed me to download pygame. I have no idea why you can't install packages in 3.8.0 might be a bug.
I had this problem a while ago too, you could try installing pygame through pycharm's virtual terminal. Pycharm's virtual terminal is located at the bottom of the screen. To open it, the button is on the bottom left next to the Python Console and to-do list. Inside pycharm's virtual terminal you should input,
pip install pygame
After this, you should be able to import pygame with ease. Hope this helps! Make sure to mark my answer as correct if it helps you out. Have a good day.

Compiling MySQL 5.7.20 in CentOS 7 Issues (A Lot)

I am trying to setup a MySQL server using CentOS (No GUI) and I need to switch to OpenSSL instead of YaSSL in order to have access to the encryption tools.
The issues happen when runing the cmake. At first I got the error that cmake was not able to find boost, I fixed this adding the parameter -DWITH_BOOST.
The cmake line is as follows.
cmake . -DWITH_READLINE=ON -DWITH_SSL=system -DWITH_BOOST=/usr/local/src/mysql-5.7.20/boost/
After the adjustment I ran again the CMAKE the I got several errors.
SSL Error, cmake can not find the OpenSSL files. I checked if the library was installed, I also downloaded the tar.gz file and decompress it and pointed the cmake to the folder, none of this worked.
Can not find NUMA libraries, again I checked and it is installed, at this point I ran the system update to check for everything but this did not solve the issue.
Can not find the ncurses, the same thing, is on the system but for some reason cmake is not able to find those.
Can not fin libaio, I didn't have this one installed, I installed, ran cmake again, and again cmake was not able to find it.
I been looking around, trying to figure out all this issues, I've been joining information from different websites but still not able to figure out this.
Thanks ahead to everyone for the help.
You're facing the dependencies hell with MySQL. If you don't really need to compile from the sources, you still can install with the RPM which is much easier. The RPM method is described here : https://dev.mysql.com/doc/mysql-yum-repo-quick-guide/en/
As you're asking a ready-to-go install from the sources, this is what I just did and it worked, on a fresh CentOS 7.4 minimal, 2 vcpus 3Gb :
yum group install -y 'Development Tools'
yum install -y cmake ncurses-devel curl
curl -Ovk https://cdn.mysql.com/Downloads/MySQL-5.7/mysql-5.7.20.tar.gz
tar zxf mysql-5.7.20.tar.gz
cd mysql-5.7.20
cmake . -DDOWNLOAD_BOOST=1 -DWITH_BOOST=$HOME/boost -DENABLE_DOWNLOADS=1
make -j2
make install
After that you need to configure it, add the startup scripts, and of course secure it. Here are some additional docs :
http://howtolamp.com/lamp/mysql/5.6/installing/
https://dev.mysql.com/doc/refman/5.7/en/mysql-secure-installation.html
Perhaps try make clean; cmake clean; ldconfig then run your cmake command. Sometimes the system can't find the shared libraries, and ldconfig refreshes the library search path. This helped once when I was compiling something (emscripten?) which required a lot of libraries which I was installing as compilation errors arose.
The make clean; cmake clean will ensure that the compiler isn't looking at the old library search path when you recompile.

Error while installing Octave

I am trying to install Octave on OS X. When executing brew install octave I get the following error:
octave: A LaTeX distribution is required to install.
You can install MacTeX distribution from:
http://www.tug.org/mactex/
Make sure that "/usr/texbin", or the location you installed it to, is in
your PATH before proceeding.
I downloaded and installed MacTeX but it is still not working :(
How can I fix this?
If you want to avoid the MacTeX dependency you can install Octave with brew as follows:
brew install octave --without-docs
"Make sure that "/usr/texbin", or the location you installed it to, is in
your PATH before proceeding."
This message may be the hint of the answer for you.
You need to set the PATH so that the Tex could be called from anywhere in your system.
Adding the following line in the .bash_profile may fix it.
export PATH=$PATH:/usr/texbin/
The reason why the texlive command does not work have also same cause on this.

how to install tcl on solaris sparc

I have a solaris machine configuration: SunOS indevel07 5.10 Generic_147440-15 sun4v sparc sun4v. I am trying to install expect utility on this. expect utility requires tcl to be installed. I have tried to install that too, but i am getting errors. I have downloaded the tcl-8.5.12-sol10-sparc-local.gz and expect-5.45-sol10-sparc-local.gz from sunfreeware. I have unzipped them and tried to install them like pkgadd -d pkgname. I am getting errors like:
ERROR: attribute verification of </usr/local/man/man3/Tcl_Seek.3> failed
pathname does not exist
There are lots of errors like this. I tried to troubleshoot it by googling but could not find anything about it. I am stuck with my development because of this.
Try building Tcl/Tk and Expect from the source. Here is the instruction - How to Compile Tcl. Expect download - Obtaining Expect for UNIX. That worked for me on Solaris 10 and I did not hit any serious bumps.
For those who want to install tcl please refer this URL. it has got steps to do that. URL: http://www.wellho.net/mouth/1174_Installing-Tcl-and-Expect-on-Solaris-10-a-checklist.html

CPAN error. How can I fix this?

This is driving me crazy- if you can be of assistance, I'd be much obliged. I am running Cygwin on Windows 7.
I have been attempting to write a Perl script to obtain and work with some JSON information. However, my cpan will not install some packages properly. If I try to execute
install CPAN
or
install JSON
It seems to be going well for a while, but then I get an error message over and over again:
0 [main] perl 3288 child_copy: loaded dll data write copy failed, 0x740D1000..0x740D27F0, done 0, windows pid 6600, Win32 error 487
Some people suggested executing ash from the DOS command prompt, and using rebaseall. I tried this, and dash, to no avail. The install still hangs, and when I start up cpan it displays
There seems to be running another CPAN process (pid 3764). Contacting...
Other job not responding. Shall I overwrite the lockfile '/home/me/.cpan/.lock'? (Y/n) [y] y
I have gcc and as many other possible dependencies installed as many online have suggested in my search for help. If you have any leads, I'd be most obliged. Thank you.
i had issues installing pretty much any cpan module - same 'cant move' error!!
just disabled McAfee and all resolved.
Check and disable your AV.
Re-run the cygwin installer to add the needed packages.