Menu
  • HOME
  • TAGS

How to install ia32-libs in Ubuntu 14.04 LTS (Trusty Tahr)

Tag: ubuntu,ia-32

I installed Ubuntu 14.04 (Trusty Tahr) yesterday. Everything seems OK. But when I want to compass my C code, I meet the problem. It failed because my OS can't support a 32-bit architecture. The error output is:

/usr/bin/ld: i386 architecture of input file `./libsc.a(ftl_msg.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `./libsc.a(libsc_debug.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `./libsc.a(libsc_str.o)' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `./libsc.a(libsc_cfg_common.o)' is incompatible with i386:x86-64 output

I used to apt-get install ia32-libs when I was using Ubuntu 12.04 (Precise Pangolin). But what I know is that Ubuntu has removed the ia32-libs since Ubuntu 13.10 (Saucy Salamander). How can I fix this problem?

Best How To :

You can try this to install the 32-bit library (not all in ia32-libs):

apt-get install program:i386

Or if you want to install the whole ia32-lib instead, try the following order:

sudo -i
cd /etc/apt/sources.list.d
echo "deb http://old-releases.ubuntu.com/ubuntu/ raring main restricted universe multiverse" >ia32-libs-raring.list
apt-get update
apt-get install ia32-libs

PS: In this way, you can install ia32-libs. However, we add the source of 13.04 instead, so, there may be some unknown problem. After installing ia32-libs, I recommend you to remove the ia32-libs-raring.list in /etc/apt/sources.list.d, and do sudo apt-get update.

Unable to deploy through capistrano after ubuntu upgrade

ruby-on-rails,ubuntu,ruby-on-rails-4,deployment,capistrano

I suppose that the RSA identity is not added to the authentication agent. To add the identity, just run the command ssh-add ~/.ssh/id_rsa...

cuMemcpyDtoH yields CUDA_ERROR_INVALID_VALUE

java,scala,ubuntu,cuda,jcuda

Here val deviceOutput = new CUdeviceptr() cuMemAlloc(deviceOutput, SI) you are allocating SI bytes - which is 4 bytes, as the size of one int. Writing more than 4 bytes to this device pointer will mess up things. It should be cuMemAlloc(deviceOutput, SI * numElements) And similarly, I think that the...

Nginx redirect http subdomains to https

ubuntu,redirect,ssl,nginx,rewrite

Your web server is setup with Strict-Transport-Security max-age=16070400; includeSubdomains. This will tell the web browser to request your domain using https only. If you want the subdomain blog to be accessed through insecure http, you will need to remove includeSubdomains from the HTTP Strict Transport Security (HSTS) and use a...

Zip all subdirectories using python

python,linux,unix,ubuntu

Probably your issue is with the path you're passing as an argument. I've tried your script with the following changes: import shutil import os loc = "testfolder" path = os.getcwd() + '/' + loc + "/" dirs = os.listdir( path ) for file in dirs: name = file shutil.make_archive(name, 'zip',...

What is version of cuda for nvidia 304.125

ubuntu,cuda,ubuntu-14.04,nvidia

304.xx is a driver that will support CUDA 5 and previous (does not support newer CUDA versions.) If you want to reinstall ubuntu to create a clean setup, the linux getting started guide has all the instructions needed to set up CUDA 7 if that is your intent. I believe...

shell script to start conky and plank

bash,shell,ubuntu,conky

You don't need the echoes or the back quotes. Just: #!/bin/bash conky -q & plank & This should also work: #!/bin/bash echo `conky -q` & echo `plank` & So you put in background the whole command....

C++ Ubuntu select() if serial interface has data on asynchronous read

c++,multithreading,ubuntu,asynchronous,serial-port

Didn't specify a fd_set to read. Try this: fd_set readfs; /* file descriptor set */ FD_ZERO(&readfs); /* clear the set */ FD_SET(fd, &readfs); /* put the fd in the set */ int ret = select(fd + 1, &readfs, 0, 0, &tv); Edit: That should also solve your other question. Each...

Can't install Composer on Ubuntu behind proxy

php,ubuntu,proxy,composer-php

I got help from some experts close by: add 3 lines to /etc/profile export http_proxy=http://[username]:[password]@[webproxy]:[port] export https_proxy=http://[username]:[password]@[webproxy]:[port] export ftp_proxy=http://[username]:[password]@[webproxy]:[port] For a similar error (apt-get update was not reaching some repositories), I edited /etc/apt/apt.conf: Acquire::http::proxy "http://[username]:[password]@[webproxy]:[port]"; Acquire::https::proxy "https://[username]:[password]@[webproxy]:[port]"; Acquire::ftp::proxy...

PHP Autoloader doesn't work on Ubuntu production server

php,ubuntu,composer-php

It's your wrong autoloading definition. You want to use the class PicoCore\Rest\ApiInitializer And you have these files: api/index.php api/vendor/... (with your required external dependencies) api/composer.json (with the autoloading mentioned in your question) api/core/PicoCore/rest/ApiInitializer.php And you have this autoloading configured: "autoload": { "psr-0": { "PicoCore\Rest\" : "PicoCore/rest" } } This is...

Ubuntu down load a package and all of its dependencies without installing them

ubuntu,download,package

I've used camicri to download a package with all of its dependencies.

Error installing nokogiri in ubuntu 14.0.4 (Ruby 1.8.7)

ruby,ubuntu,gem,install,nokogiri

I tried the following commands and I've got it. Thanks to Mr.Kumar $ sudo apt-get update $ sudo apt-get install libxml2-dev $ sudo apt-get install libxslt-dev $ sudo gem install nokogiri -v '1.4.7' $ gem list nokogiri *** LOCAL GEMS *** nokogiri (1.4.7) ...

Ubuntu 14.04 - An error occurred while installing pg (0.18.2), and Bundler cannot continue

ruby-on-rails,postgresql,ubuntu,heroku,sqlite3

Do you have PostgreSQL installed locally? If not, that might be the reason for that (having gem 'pg' is not enough to install it locally). You will have to run sudo apt-get install postgresql postgresql-contrib to install. You do not need it installed locally to push to Heroku though...as long...

Boost unit test dynamic linking on Ubuntu

c++,ubuntu,singleton,dynamic-linking,boost-unit-test-framework

Got it! Ubuntu seems to use the --as-needed linker option by default, where as Fedora may not. Turning it off will add libcase.so library to the needed list for unittest. After deploying the library (or using LD_LIBRARY_PATH) the unittest works now. unittest: libcase.so g++ -o unittest test_main.cpp -Wl,--no-as-needed -L. -lcase...

How do I make all files executable that have the file extension .cgi?

ubuntu,file-permissions

Try to combine find with chmod: sudo find /path/to/files -name "*.cgi" -exec chmod +x {} \; ...

How to attach several files in mail using unix command?

mysql,email,ubuntu,sendmail,ubuntu-14.04

You are very close. You can use mail command to send 1 attachment as follow (you'd better TAR / ZIP your files before sending): echo "$2" | mail -s "$1" -a /path/to/file.tar.gz [email protected] Next, if you want to have more features, you can use mutt (install with apt-get install mutt):...

Protobuf cannot be linked on ubuntu

c++,ubuntu,linker,cmake,protocol-buffers

As @frymode pointet out in his comment, linkage to NewGeneratedMessageReflection means that the compiler generated code that uses Protobuf version 3 (as I used that version in my .proto files). However, the library files installed from the ubuntu package pulled version 2 onto my system, that's why the methods could...

Elasticsearch 1.6 reboot on ubuntu pid-file

linux,ubuntu,elasticsearch,pid

Until elasticsearch fixes it , one possible workaround is to adapt the file /etc/init.d/elasticsearch change PID_DIR="/var/run/elasticsearch" to PID_DIR="/var/run" the PID file will now be created directly in the run folder. https://github.com/elastic/elasticsearch/issues/11594...

How do I respond to a prompt for password in a shell script?

bash,ubuntu,vnc

If the program is reading from your terminal instead of stdin, you'll find that it ignores any data you send in using file redirection. If that's the case, then you can use a program like expect to automate interactions with the terminal using a pseudy-tty. This is exactly the sort...

Can not increase max_open_files for Mysql max-connections in Ubuntu 15

php,mysql,performance,ubuntu

Ubuntu has moved from to Upstart to Systemd in version 15.04 and no longer respects the limits in /etc/security/limits.conf for system services. These limits now apply only to user sessions. The limits for the MySQL service are defined in the Systemd configuration file, which you should copy from its default...

Creating a docker swarm cluster in Vagrant

ubuntu,vagrant,virtual-machine,docker-swarm

As show swarm/discovery in comment: # on each of your nodes, start the swarm agent # <node_ip> doesn't have to be public (eg. 192.168.0.X), # as long as the swarm manager can access it. $ swarm join --addr=<node_ip:2375> token://<cluster_id> node_ip it's the ip address of the new node of the...

Kill command in UNIX

linux,bash,shell,unix,ubuntu

See the manual page (http://linux.die.net/man/2/kill) If pid equals -1, then sig is sent to every process for which the calling process has permission to send signals, except for process 1 (init), but see below. So I guess that is you out of the system - but life continues for the...

How can I run a libGDX application on a non-GUI server environment?

java,linux,ubuntu,libgdx,server

I've answer my self this question for anyone who's looking for this. First, added these two libraries in the build.gradle file: compile "com.badlogicgames.gdx:gdx-backend-headless:$gdxVersion" compile "org.mockito:mockito-all:1.9.5" Then, I've started my libGDX as following: HeadlessNativesLoader.load(); MockGraphics mockGraphics = new MockGraphics(); Gdx.graphics = mockGraphics; HeadlessNet headlessNet = new HeadlessNet(); Gdx.net = headlessNet; HeadlessFiles...

JApplet does not receive mouse-events

java,ubuntu,mouselistener

window.setBounds(100, 100, SCREENW, SCREENH); was missing!...

How to redirect standard output to a file — what's wrong with this code?

c,linux,ubuntu

You are writing on stdout which is buffered by default, and as I cannot see any break, return or exit in your loop, I assume that you quit your program with Ctrl-C. And all the values that were buffered until there are simply discarded. You should simply fflush stdout after...

How does one install MarkLogic 8 on Ubuntu 14.04?

ubuntu,install,marklogic

According to Alex Bleasdale/David Ennis, download the CentOS version; then: Ubuntu and other Debian based distributions use DEB packages and CentOS or RedHat use RPM packages. To convert an RPM to DEB in a somewhat reliable way, one can use the 'alien' command. You install and use alien as follows:...

how to ssh run a tail and then send data to a mysql database

linux,bash,unix,ubuntu,ssh

If insertPerfmon.sh is: #!/bin/bash mydata=$(cat) echo $mydata # process & send $mydata to database The following should work: <your_ssh_command> | bash insertPerfmon.sh ...

issues with installing newer cabal version for haskell vim now

ubuntu,haskell,vim,ubuntu-14.04,cabal

Your $PATH variable seems to be broken. In a comment you said it was /home/me/google-cloud-sdk/bin:/.cabal/bin:/usr/local/sbin:/usr/local/bin:/usr/sb‌​in:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games This means that your shell (assumed to be bash) will look in the following directories /home/me/google-cloud-sdk/bin /.cabal/bin /usr/local/sbin /usr/local/bin /usr/sb‌​in /usr/bin /sbin /bin /usr/games /usr/local/games when looking for executable. If you look at the second...

Anyone successfully used jonnyw's “php phantomjs” with laravel, in a ubuntu envirement?

php,ubuntu,laravel,phantomjs

Yep, but it's a pain. Most of the time it's because you have to use the full path to the phantomjs executable. Also, make sure phantomjs is properly installed on your server too, like, does it work if you just run the phantomjs command in a terminal? ...

Would using Vagrant be overkill? [on hold]

python,windows,ubuntu,vagrant,virtualbox

What I'm looking for is a way to run Ubuntu on this machine, for development work AND for personal use VirtualBox should be able to provide everything that you need. You can create a VM of your choosing, with or without a GUI and use it for whatever you...

Error in reading Ubuntu 14.04 mouse event file (/dev/input/event3) with java programmig

java,events,ubuntu,terminal,mouse

Check that your buffer size is correct. In recent Linux kernels size of input_event structure is dependent on many things, but mainly on cpu architecture. Here's its declaration: struct input_event { struct timeval time; __u16 type; __u16 code; __s32 value; }; On 32-bit systems it's very likely that your buffer...

Error execute studio.sh unrecognized vm option 'MaxPermSize=350m' on Ubuntu 14.04

ubuntu,android-studio,ubuntu-14.04

oh I've solved this problem, I install Oracle JDK 9 when android studio runs on JDK 6 or JDK 7 (if I'm not mistaken). so I uninstalled Oracle JDK 9, then download and install the JDK 7...

Cannot set PHP include_path

php,ubuntu,path,include-path

I wouldn't leave library paths to chance like that: require_once(__DIR__ . '/libraries/Stripe/init.php'); This would make sure you include the script using the absolute directory path of the currently running script. Update Failed opening required '/var/www/html/libraries/Stripe/init.php' Well, then the file is simply not there; if this file was generated by some...

Unable to connect to mariadb database server with qt 4.8.5 and Ubuntu 12.04

mysql,qt,ubuntu,mariadb

It was a problem with the database and not the Qt application, the connection refused if a password was used.

Pylucene 4.9.0 Ubuntu 14.04 Installation ImportError

python,ubuntu,lucene,pylucene

I had to add extra paths to my LD_LIBRARY_PATH environment variable to get things working. The test here in the conda build script actually shows those variables. export LD_LIBRARY_PATH=$PREFIX/lib:$PREFIX/jre/lib:$LD_LIBRARY_PATH export LD_LIBRARY_PATH=$PREFIX/jre/lib/amd64:$LD_LIBRARY_PATH export LD_LIBRARY_PATH=$PREFIX/jre/lib/amd64/server:$LD_LIBRARY_PATH export LD_LIBRARY_PATH=$PREFIX/lib/python2.7/site-packages:$LD_LIBRARY_PATH $PREFIX here is the path to the anaconda folder. I currently install miniconda at /usr/conda...

Access binaries inside docker

ubuntu,meteor,docker

It doesn't seem to be configurable at the moment based on this open issue. However, you could always fork the project and modify the start script to use your own custom docker image. If so, make sure you make it: FROM meteorhacks/meteord:base ...

In ubuntu unable to write file in specified directory using java

java,ubuntu,io

You cannot write outside of the /home/ directory by default. Also sudo is a command, you cannot execute a command from a BufferedWriter. So, launch your jar with sudo java -jar yourJar.jar or launch your IDE in root (for eclipse sudo eclipse). And try something like that: import java.io.BufferedReader; import...

connect to mysql database which is in ubuntu server

php,mysql,ubuntu,azure,virtual-machine

1) change my.conf (whatever your mysql conf file is called). And set bind-address to 0.0.0.0 as it is prob 127.0.0.1 2) stop/restart mysql daemon Connections now are not limited to those from localhost (what you are when you ssh). The default is localhost for obvious security reason until dev guy...

Pretty URLs aren't working after upgrade to Mediawiki 1.24.2

.htaccess,ubuntu,mediawiki

Make sure, that you checked the following points: - the mod_rewrite module is enabled - you allow the htaccess to overwrite the settings you want (check, if the AllowOverwride directive is set, e.g. (that would be the easiest value) to all, see http://httpd.apache.org/docs/current/de/mod/core.html#allowoverride # your directory definition AllowOverwride All #...

Fail to build Mono.Addins with the latest Mono 4.3.0 and GTK# on Ubuntu 14.04

ubuntu,mono

Ok, I found the solution. It was simple. I just have chosen wrong version of GTK# library. It should be a 2.12.* version, but on GTK# master it is 2.99.*. When I changed the version (by git checkout), everything was compiled as it should. Mono.Addins will compile with 2.99.* of...

How do I switch between different versions of Julia (specifically between v0.3 and v0.4 on Ubuntu)?

linux,ubuntu,ubuntu-14.04,julia-lang

You can install different versions of Julia in different locations and set separate symlinks. For example, you could download the v0.3 Linux binaries and install them to one location, then clone the GitHub source for v0.4 and install that in another location. Then set symlinks such as julia3 for v0.3...

Error installing gem twitter on Ubuntu 15.04

ruby-on-rails,ruby,ubuntu,twitter

You are getting this error because there is no ruby development environment installed. Development environment is needed to compile ruby extensions, You should install development first using command below: $ sudo apt-get install ruby-dev ...

Write Access for user on all repos on Gitolite

git,ubuntu,gitolite

myreponame.git doesn't exist on the server currently, but I'd like to be able to add it automatically just by using the remote add origin command. That is not how you add a new repo with gitolite. You need to modify your conf/gitolite.conf file of your gitolite-admin repo, in order...

JFrame wrong location with Ubuntu (Unity ?)

java,swing,ubuntu,jframe,location

I don't have Ubuntu to test with, but I've used something similar to this on both MacOS and Windows import java.awt.Container; import java.awt.Point; import java.awt.event.MouseAdapter; import java.awt.event.MouseEvent; import java.awt.event.MouseMotionListener; import javax.swing.JFrame; import javax.swing.SwingUtilities; public class Test { private static JFrame mainFrame; public static void main(String[] args) { SwingUtilities.invokeLater(new Runnable() {...

WalkingDead Program - Finding zombies and orphans

c,ubuntu

just make a loop executing the command you have with #include <stdlib.h> int system(const char *command); That´s all you need ...

Bash: Loop through file and read substring as argument, execute multiple instances

linux,bash,ubuntu,lftp

Parallel processing I'd use GNU/parallel. It isn't distributed by default, but can be installed for most Linux distributions from default package repositories. It works like this: parallel echo ::: arg1 arg2 will execute echo arg1 and and echo arg2 in parallel. So the most easy approach is to create a...

Chrome all of a sudden zoomed in on ubuntu

linux,google-chrome,ubuntu

This is a known issue in Chrome 43.0.2357.124 for Linux. It is fixed as of Chrome 43.0.2357.125. See this issue in their bug tracker, opened 2 days ago (June 9 2015). You should update Chrome to the latest version: sudo apt-get update && sudo apt-get install --only-upgrade google-chrome-stable If updating...

pyreport LaTeX formulae not working

python,ubuntu,latex,pyreport

I think i have find the problem. The problem is the RST tools to convert in html. In pyreport, when you choose the math mode, the program will do the sentence in a bock .. raw:: LaTeX But in the new version of rst2html, this command doesnt work, it's replace...

Python3 input() error: can't initialize sys standard streams

ubuntu,python-3.x

Magic number is the term for the first two bytes of an executable file. It is used to determine how the executable should be loaded. The magic number is also used in *.pyc files that are compiled from the *.py files. It says what version of bytecode is used inside....

Is it possible to dump the core but not exit the process?

c++,c,ubuntu,core

You can also do that using gcore: Generate a core dump of a running program with process ID pid. Produced file is equivalent to a kernel produced core file as if the process crashed (and if "ulimit -c" were used to set up an appropriate core dump limit). Unlike after...

terminal command for running sublime text 3 from on ubuntu

linux,ubuntu,terminal

As per Mathias comment in my question I found the answer here... How can I open Sublime Text 2 files from the command line in linux to a tab, not a new window...