How to install gas-preprocessor? - perl

sorry for the stupid question. I'd like to install the gas-preprocessor (https://github.com/yuvi/gas-preprocessor) but I just don't get how to do this. What do I have to do with the .pl-file? How do I install the script?
Thanks in advance,
Alex

Well i had the same problem "GNU assembler not found, install gas-preprocessor"
Later it turned out that i didnt had the correct file because i copy pasted the code in text editor
The correct way to do it is:
(a) Use the download button at https://github.com/yuvi/gas-preprocessor
(b) Extract the archive
(c) Remove any other file by same name which you have downloaded and you were experimenting with.
(d) copy the file gas-preprocessor.pl at /usr/local/bin
(e) Set permission of the file to Read and write by all (777) if a -> d doesn't work
I figured out this problem when i read config.log during compilation of ffmpeg

Run this command to install gas-preprocessor:
wget --no-check-certificate https://raw.githubusercontent.com/FFmpeg/gas-preprocessor/master/gas-preprocessor.pl && \ chmod +x gas-preprocessor.pl && \ sudo mv gas-preprocessor.pl $(which gas-preprocessor.pl)

I had the same issue after following the above steps in OSX Lion. It seems that my /usr/local/bin directory was only accessible by root on my system (this path seemed to be owned by macports).
After putting gas-preprocessor.pl in /usr/bin the configure process ran fine.

Related

How to install bin to specific folder?

I need to install the bin artifact inside a specific folder, like /usr/local/bin
I've tried the following which doesn't help. Any idea what I miss here?
RUN wget http://host:8081/content/build/com/bp-pl/1.0.0/cli-bp-1.0.0-linux.bin | /usr/local/bin
RUN wget http://host:8081/content/groups/build.releases/com/bp-pl/1.0.0/cf-cli-bp-plugin-1.0.0-linux.bin -O /usr/local/bin/cf-cli-bp-plugin-1.0.0-linux.bin

Cpplint could not find executable

I am trying to activate cpplint within vs code. I have installed it in Anacanda environment where executable
/home/ubuntu/anaconda3/bin/cpplint
I have a link to it
ls -l /home/ubuntu/anaconda3/bin/cpplint
Unfortunately per visual code cpplint extension still getting error of "Cpplint could not find executable"
Please, advice to configure it correctly.
Download and install
sudo apt-get install python-pip
pip install --user cpplint
Verify install result
ls -l /usr/local/bin/cpplint
If you still have issues check cpplint.cpplintPath and verify the execution path is set correctly.
Also, if you installed cpplint into ~/.local/ directories, by default ~/.local/bin is not included in PATH. So to fix just that add:
export PATH=$PATH:~/.local/bin/
to your ~/.bashrc

pg_ctl: error while loading shared libraries: libpq.so.5

I'm trying to get postgres server status with:
sudo /etc/init.d/postgres status -u postgres
But getting following error:
/home/alex/olddisk/usr/local/pgsql/bin/pg_ctl: error while loading shared libraries: libpq.so.5: cannot open shared object file: No such file or directory
I added:
export LD_LIBRARY_PATH=""
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/usr/local/lib/"
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/home/alex/olddisk/usr/local/pgsql/lib/"
to my .bashrc, but it didn't help.
Thank you.
I ran into this error when I built postgresql from source using the --prefix flag. Building from source installs the necessary shared libs to the libs folder under the prefix directory you specified, instead of the usual place installations put shared libs. To solve the problem I just added the [prefix].libs folder to the LD_LIBRARY_PATH environment variable. For example, after building postgres using --prefix /mike/sandbox/postgres, the below command solved the issue:
export LD_LIBRARY_PATH=/mike/sandbox/postgres/lib:$LD_LIBRARY_PATH
I think this issue is duplicated, I faced the same problem and posted a solution here.
try this:
1: Know the path of "libpq.so.5"
find / -name libpq.so.5
Output example: "/usr/pgsql-9.4/lib/libpq.so.5" If found nothing, check if you have already installed the suitable postgresql-libs for your postgresql version and your OS platform
2: Symbolic link that library in a "well known" library path like "/usr/lib":
ln -s /usr/pgsql-9.4/lib/libpq.so.5 /usr/lib/libpq.so.5
Attention: If your platform is 64 bit, you MUST also symbolic link to 64 bit libraries path:
ln -s /usr/pgsql-9.4/lib/libpq.so.5 /usr/lib64/libpq.so.5
3: Be happy !
Please ensure you have 'postgresql94' package installed as well (in addition to postgresql94-server, postgresql94-lib, postgresql94-devel and whatever other PG related package you already have). These libraries get installed along with that package.
Some ideas:
Your modified ~/.bashrc only takes effect when you start a new (interactive) shell. Though catching up on that will not help you because:
/etc/sudoers, your configuration file of sudo, probably specifies env_reset. This means, that /etc/init.d/postgres will not see the content of $LD_LIBRARY_PATH of your shell.
Insert debug statements in /etc/init.d/postgres to verify what I told you: echo "LDPATH: $LD_LIBRARY_PATH" >&2
Check /etc/init.d/postgres. Probably you will have to insert the third one of your export statements near the start of this script. Or you will have to update an existing export LD_LIBRARY_PATH= statement.
Have you installed the necessary libraries?
If you are using ubuntu try:
sudo apt-get install libpq libpq-dev

Octave docs not present

octave:1> doc fflush
info: /usr/local/Cellar/octave/3.6.3/share/info/octave.info: No such file or directory
I'm not sure what I've done wrong with my installation, but I get the msg above when attempting to find the documentation (help fflush works fine). Does anyone know how to fix this issue?
I had the same problem and solved it with manually decompressing the corresponding deb archive to the respective place of the brew installation:
Download the deb from here : http://packages.ubuntu.com/de/quantal/all/octave-info/download
cd ~/Downloads
mkdir doc
cd doc
ar -x ../octave-info_3.6.2-5_all.deb
tar xzf data.tar.gz
cd usr
find . -name '*.gz' -type f -exec gunzip "{}" \;
cd ..
cp -r share /usr/local/Cellar/octave/3.6.4/
cd ~/Downloads
rm -r doc
You have to adjust the octave version numbers to match the most recent and your brew cellar of course.
I don't know about Mac OSC. If you had built it yourself, could have been that you disabled the documentation at build time. With a package manager... you already checked that it does not have a separate octave-doc package.
There's a bunch of other package managers for Mac that have Octave. See Octave's wiki. Taking a quick look at the other package managers, it seems that they all have separate packages for docs.

pcap.h header file problem

anyone know how to fix the problem regarding header file in ubuntu 10.10.
I am executing a sniffing program which makes use of this header file. My system shows libcap package is installed. Still, on compiling the code, an error is coming which reads:
fatal error: pcap.h: No such file or directory
compilation terminated.
Please help me out.
Thanks all:)
The system won't let me correct Eric Fossum's comment, because I lack reputation. There is a typo ("libcap" vs. "libpcap") and his suggested command should read the following:
sudo apt-get install libpcap-dev
sudo apt-get install libpcap0.8-dev
If you are using yum, then
sudo yum install install libpcap-devel
You don't have the pcap.h file in your include path. You need to add the location of pcap.h to your include path when compiling:
-I/path/to/pcap.h
If you're using linuxbrew, you can just brew install libpcap. In my case I was trying to install nethogs and it failed with this error.
First install libpcap:
sudo apt-get install libpcap0.8-dev
then create its shortcut for header file:
ln -s /usr/include/pcap/bpf.h /usr/include/net/bpf.h