Scilab not opening in macOS Sierra - scilab

I recently upgraded to macOS high Sierra and after that Scilab-6.0.0 has stopped working [nothing appears on screen when I open it]. I also tried installing older version of Scilab but that also did not work.

A found a solution in http://bugzilla.scilab.org/show_bug.cgi?id=15307, but is really ugly. Many users are saying the best thing to do is to wait for the next Scilab release to fix the bug. But those who cannot wait, here a tweak that I found in the comments and worked for me.
qiyj 2017-10-27 15:10:51 CEST
$ sudo cp "/System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib" "/Applications/scilab-6.0.0.app/Contents/MacOS/lib/thirdparty/"
$ sudo cp "/System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libPng.dylib" "/Applications/scilab-6.0.0.app/Contents/MacOS/lib/thirdparty/".
Then you can run scilab in MacOS High Sierra by "Try Anyway" method, and if Java 6 is requested, refer to the Scilab download page.
Cheers.

This worked for me
$ sudo cp "/System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib" "/Applications/scilab-6.0.0.app/Contents/MacOS/lib/thirdparty/"
$ sudo cp "/System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libPng.dylib" "/Applications/scilab-6.0.0.app/Contents/MacOS/lib/thirdparty/".

Related

Sagemath 9.2 documentation not working on Ubuntu Focal

I've downloaded the Sage 9.2 tarball from sagemath.org for Ubuntu Focal. The software works in every other regard but when I load a Jupyter notebook and click on one of the Help topics, I get a 404 File not Found saying the page I'm requesting doesn't exist.
How do I get the docs to work? Thanks for any help with this.
This is a bug in Sage 9.2. See
Ask Sage question 54581: 9.2 download for Ubuntu 20.04 documentation
Sage-Windows issue 52: broken symbolic link: doc -> /doesnotexist/html/en
The issue is fixed at the following ticket,
which was merged in Sage 9.3.beta3:
Sage Trac ticket 30903: Fix broken symlink to documentation in the Sage jupyter kernelspec
Two solutions to get the fix:
wait for Sage 9.3 in a few weeks
install 9.3.beta3
One can also fix one's installation as suggested
at Sage-Windows issue 52 referenced above.
For this run the following commands:
$ SR=`sage -c 'print(SAGE_ROOT)'`
$ A=$SR/local/share/doc/sage/html/en
$ B=$SR/local/share/jupyter/kernels/sagemath/doc
$ ln -sf $A $B
This works fine and restarting Sage is not even needed.

Odd ld warning from rstudio

while i tried to install packages on Rstudio,I kept encountering the ld warning like this:
ld: warning: text-based stub file /System/Library/Frameworks//CoreFoundation.framework/CoreFoundation.tbd and library file /System/Library/Frameworks//CoreFoundation.framework/CoreFoundation are out of sync. Falling back to library file for linking.
Does someone know how to fix this?
Reinstalling CommandLineTools doesn't work for me.
These warnings were caused by the frameworks in /System/Library/Frameworks/.
The solution
Links the recent frameworks from MacOSX.sdk to /Library/Frameworks/.
sudo ln -s /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreFoundation.framework /Library/Frameworks/
sudo ln -s /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/Security.framework /Library/Frameworks/
First, you can safely ignore those messages. This is a known condition after the installation of Mojave (macOS 10.14) or the macOS 10.13.6+ updates.
You can try to remove them by having the OS regenerate the compatibility files (Apple uses a different library format for macOS app development but has a compatibility layer for "normal" development). To do that, set aside abt 8 minutes on a fast internet connection, open a command-line prompt (Terminal/iTerm) and do:
sudo mv /Library/Developer/CommandLineTools /Library/Developer/CommandLineTools.old
then do:
xcode-select --install
and follow the instructions and wait.
Re-try your package/source compilations and if the messages go away, you should be able to safely do:
sudo rm -rf /Library/Developer/CommandLineTools.old
but leaving that directory tree there should not do any harm (provided you have the free space to spare).

Virtuoso appears to be installed... but isn't (and won't run)

I've followed the instructions to install the stable branch of Virtuoso Open Source 7 on Ubuntu 16.04. There don't appear to be any errors throughout the process of —
./autogen.sh
CFLAGS="-O2 -m64"
export CFLAGS
./configure
make
make install
However, when I go to /usr/local/virtuoso-opensource/var/lib/virtuoso/db (which contains only virtuoso.ini) and run —
virtuoso-t -f &
The first time I do this the terminal just vanishes. When I reopen the terminal and run the same again it just reads The program 'virtuoso-t' is currently not installed. You can install it by typing: apt install virtuoso-opensource-6.1-bin.
I've tried installing both 7 stable and develop from github and both produce the same result. I'd rather use 7 but tried installing 6 via the ubuntu package and conductor wouldn't work for me - not having much luck all round, one of those days.
Thanks for assistance you can provide.
Sounds like you didn't adjust your $PATH variable after make install.
$PATH should include the path to the directory which contains the virtuoso-t, or you can include that path in the launch command, e.g. —
/path/to/virtuoso-t -f -c /usr/local/virtuoso-opensource/var/lib/virtuoso/db/virtuoso.ini &
(Note that the develop/7 branch is recommended over stable/7 at the moment, due to the number of fixes there.)

Emacs with ESS won't start in El Capitan

I did install emacs from here, and it worked perfectly until early today.
my .bash_profile looks:
# Homebrew
export PATH=/usr/local/bin:$PATH
#—— Alias
alias rm='rm -i'
alias emacs=/Applications/Emacs.app/Contents/MacOS/Emacs
However, when I type:
$ which emacs
/usr/bin/emacs
while it should point to the alias.
$ /usr/bin/emacs -version
GNU Emacs 22.1.1
...
This is the default version, which seems to work, but is not the one I'd like to use:
When I type
$ emacs -version
GNU Emacs 24.5.1
Which is the version I would like to use, the modified version with ESS "inside". Now emacs won't even start. For whatever reason, freezes in a white screen while loading. I am on R version 3.3.1 and the ESS version that comes with the modified version of emacs is ESS 16.04;
I start emacs by typing emacs in my terminal (iterm2). However, not even double-clicking in the dowloaded App will work.
If I install and start the normal version of Emacs, it will start IF I comment all set-up related with R.
I have tried a fresh installation of R and it won't work either. Has anyone any idea of what is going on?
EDIT: I think the problem might be related with El Capitan + ESS, since I have started from a fresh OSX Installation and won't work either.

Error -1001 in clGetPlatformIDs Call !

I am trying to start working with OpenCL. I have two NVidia graphics card, I installed "developer driver" as well as SDK from NVidia website. I compiled the demos but when I run
./oclDeviceQuery
I see:
OpenCL SW Info:
Error -1001 in clGetPlatformIDs Call
!!!
How can I fix it? Does it mean my nvidia cards cannot be detected? I am running Ubuntu 10.10 and X server works properly with nvidia driver.
I am pretty sure the problem is not related to file permissions as it doesn't work with sudo either.
In my case I have solved it by installing nvidia-modprobe package available in ubuntu (utopic/multiverse). And the driver itself (v346) was installed from https://launchpad.net/~mamarley/+archive/ubuntu/nvidia
Concretely, I have installed nvidia-opencl-icd-346, nvidia-libopencl1-346, nvidia-346-uvm, nvidia-346 and libcuda1-346. Not sure if they are all needed for OpenCL.
This is a result of not installing the ICD portion of Nvidia's openCL runtime. The ICD profile will instruct your application of the different openCL implementations installed on the system as multiple implementations from different vendors can coexist. Whe your application does not find the ICD information it gives the Error -1001.
Run your program as root. In case of success: you have trouble with cl_khr_icd- extension to load the vendor driver.
If you not running X11, you have to create device files manually or by (boot-)script:
ERROR: clGetPlatformIDs -1001 when running OpenCL code (Linux)
Same problem for me on a Linux system. Solution is to add the user to the video group:
# sudo usermod -aG video your-user-name
Since I just spend a couple of hours on this, I thought I would share:
I got the error because I was connected to the machine per remote desktop (mstsc). On the machine itself everything worked fine.
I have been told that it should work with TeamViewer by the way.
Dont know if you ever solved this problem, but I had the same issue and solved it in this post: ERROR: clGetPlatformIDs -1001 when running OpenCL code (Linux)
Hope it helps!
I have solved it in Ubuntu 13.10 saucy for intel opencl by created link:
sudo ln -s /opt/intel/opencl-1.2-3.2.1.16712/etc/intel64.icd /etc/OpenCL/vendors/nvidia.icd
I just ran into this problem on ubuntu 14.04 and I could not find ANY working answers anywhere online including this thread (though this was the first to show up on google). What ended up working for me was to remove ALL previous nvidia software and then to reinstall it using the .run file provided on the nvidia website. Installing the components through apt-get seems to fail for some reason.
1) Download CUDA .run file: https://developer.nvidia.com/cuda-downloads
2) Purge all previous nvidia packages
sudo apt-get purge nvidia-*
3) Install all run file components (you will likely have to stop X or restart in recovery mode to run this)
sudo sh cuda_X.X.XX_linux.run
This is because OpenCL has the same brain damaged one library per vendor setup that OpenGL has. A likely reason for the -1001 error is that you have compiled with a different library than the linker is trying to dynamically load.
So see if this is the problem run:
$ ldd oclDeviceQuery
...
libOpenCL.so.1 => important path here (0x00007fe2c17fb000)
...
Does the path point towards the NVidia-provided libOpenCL.so.1 file? If it doesn't, you should recompile the program with an -L parameter pointing towards the directory containing NVidia's libOpenCL.so.1. If you can't do that, you can override the linker's path like this:
$ LD_LIBRARY_PATH=/path/to/nvidias/lib ./oclDeviceQuery
For me, I was missing the CUDA OpenCL library, Running sudo apt install cuda-opencl-dev-12-0 solved it.
You should get number of platforms, allocate the memory for platforms, again get this platforms and then create context from this platform. There is good example:
http://developer.amd.com/support/KnowledgeBase/Lists/KnowledgeBase/DispForm.aspx?ID=71
This might be due to querying clGetPlatformIDs by multiple threads at the same time

Resources