Quartus 13.1 installer giving segmentation fault (core dumped) - linux

I'm trying to install Quartus 13.1 on my Xubuntu 14.04 64-bit edition. The downloaded file is a .run installer, which I make executable by executing:
sudo chmod +x installer.run
./installer
Which gives a segmentation fault (core dumped) message.
I'm posting here because the Altera forums are useless, unfortunately.

Have you try to install these packages ?
sudo apt-get install libstdc++5 libmotif4 libxp6 libcurl3
And lauching it with bash command directly :
$ bash installer

Related

GtkD on Linux - Segmentation Fault error runnig "HelloWorld"

I am trying to compile and run a "Hello World" GtkD application on Linux. I followed this guide:
https://forum.gtkd.org/groups/GtkD/thread/1122/
Installed dmd compiler and gtkd3 with:
sudo snap install --classic dmd
sudo apt-get install libgtkd-3-dev
Compiled with:
rdmd -I/usr/include/d/gtkd-3/ -L-lgtkd-3 -L-ldl hello.d
I can compile (and link) successfully, however, when I run the application, I am getting a Segmentation fault error and no window shows.
I tried both on Ubuntu Mate 22.04 and on Linux Fossa Dog (based on Ubuntu 20.04).
What am I doing wrong?

Kernel Panic after trying to add a system call to Linux

I was following this tutorial to try to add a system call to Linux, and I finished the section titled "Install the kernel", then rebooted the system. When it started back up, I got this message:
I am running Lubuntu 16.04 on VirtualBox. The only possible reason I could imagine in that the tutorial uses the linux 4.2.0 kernel, and I was using 4.4.0, but everything went fine until I rebooted the VM.
Could something as simple as using the 4.4.0 kernel instead of the 4.2.0 kernel done this? If so, what would I need to different from the tutorial to fix this?
Here is the steps the tutorial says to do (of course, I replaced 4.2.0 with 4.4.0 depending on the kernel I was using):
Install requirements:
sudo apt-get source linux-image-$(uname -r)
sudo cp -r linux-4.2.0 /usr/src
sudo apt-get update
sudo apt-get build-dep linux-image-$(uname -r)
sudo apt-get install kernel-package
sudo apt-get install libncurses-dev
Adding the system call:
cd /usr/src/linux-4.2.0
mkdir hello
Put the following in ./hello/hello.c:
#include <linux/kernel.h>
asmlinkage long sys_hello(void) {
printk(“Hello World!\n”); // printk prints the message to the kernels logs
return 0;
}
Put the following in ./hello/Makefile:
obj-y := hello.o
Update line 900 (line 916 for 4.4.0) of ./Makefile to look like this:
core-y += kernel/ mm/ fs/ ipc/ security/ crypto/ block/ hello/
Edit ./arch/x86/entry/syscalls/syscall_64.tbl and add this line after the last 64 bit syscall (on 4.4.0 it was call 326 not 323):
323 64 hello sys_hello
Add this line before the #endif in include/linux/syscalls.h:
asmlinkage long sys_hello(void);
Compile and install the kernel:
make menuconfig # accept default values
sudo make modules_install install
And finally, reboot, which is what causes the kernel panic on 4.4.0, but not 4.2.0.
Update:
I redid the tutorial on Lubuntu 15.10 which uses the 4.2.0 linux kernel, and it worked fine. So my question now is why does that tutorial crash the 4.4.0 kernel, but it works fine on 4.2.0?

apt-get broken after ubuntu upgrade to 14.04

I upgraded ubuntu from version 12.04 to 14.04 and now I get several system errors when I log in and in a terminal I get this:
$ sudo apt-get upgrade
Segmentation fault (core dumped)
$ sudo dpkg --configure -a
Segmentation fault (core dumped)
...
Update: I can't run rm with sudo:
$ sudo rm filename.txt
Segmentation fault (core dumped)
So I found the answer:
I had to reboot in recovery mode as root and do:
dpkg --remove --force-remove-reinstreq libpam-smbpass
Then
apt-get install -f
then I had to move some files to make it go through. There were some conflicts with samba packages that broke sudo...

Oprofile install on ubuntu 15.04 - no binary found in /usr/bin

I am trying to install oprofile on my ubuntu 15.04 by following the link:
Getting started with oprofile on Ubuntu
On my the other laptop whcih is running on ubuntu 14.04, it works well.
I can find the binary under /usb/bin directory.
However, I dont know why after typing the apt-get command
sudo apt-get update && sudo apt-get install oprofile
My ubuntu 15.04 still doesn't have oprofiled & opcontrol binary in /usr/bin.
Is there anyway I could check with?
Thanks
===================post updated =======================
Ubuntu 15.04 comes with oprofile 1.0.0, which no longer uses the opcontrol and oprofiled commands. If you want to follow that tutorial, install 0.9.9 from source code. oprofile download page on SourceForge.

Error message when setting up ADT in Linux

I installed Ubuntu 11.10, installed GNOME 3 (replaced Unity), installed Eclipse from the Ubuntu Software Center, installed the android sdk and ADT.
Now when I start eclipse I get a message saying:
Failed to get ADB version : Cannot run program
/home/ayush/android-sdk/platform-tools/adb":java.io.IOException:error=2,
No such file or directory
What is causing this error and how do I fix it?
The command to install IA32 libraries on Ubuntu is:
apt-get install ia32-libs
sudo dpkg --add-architecture i386
sudo apt-get update
apt-get install ia32-libs
Before that please check your ubuntu version. if you are running with 64 bits, you need to install a linux emulator, IA32 bit I thinks. Verify on Google.
after that, your ADB can run easily on ubuntu.
I'm using Fedora 17 and I got the same error as the poster:
[2013-08-29 21:44:08 - adb] Unexpected exception 'Cannot run program
"/home/el/adt-bundle-linux-x86_64-20130729/sdk/platform-tools/adb":
error=2, No such file or directory' while attempting to get adb version from
'/home/el/adt-bundle-linux-x86_64-20130729/sdk/platform-tools/adb'
I know this works if you are using Fedora 17/18 (login as root)
yum install redhat-lsb.i686
And then restart the IDE and the errors no longer show.
I had the exact same error as you had, but on my Ubuntu 12.04 LTS version.
The following avoided that error for me:
1) Install 'adb' and 'fastboot' provided by the following third-party PPA.
sudo add-apt-repository ppa:nilarimogard/webupd8
sudo apt-get update
sudo apt-get install android-tools-adb android-tools-fastboot
2) Replace the copy of 'adb' and 'fastboot' provided by the official Android SDK with those installed from the above step:
cp /usr/bin/adb <path-to-your-adt-sdk-package>/sdk/platform-tools/adb
cp /usr/bin/fastboot <path-to-your-adt-sdk-package>/sdk/platform-tools/fastboot
3) Restart(re-execute) your eclipse binary.
Full credits:
http://www.webupd8.org/2012/08/install-adb-and-fastboot-android-tools.html
They have the binaries for 12.10, 11.10 and 11.04 as well.
Don't try to install ia32-libs, this library has been obsoleted.
So, you should install these libraries:
sudo apt-get install libc6-i386 lib32stdc++6 lib32gcc1 lib32ncurses5
Cheers

Resources